x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] Can you send an UObject from client to server?

Hi!

Is it possible to send an UObject or similar from the client to the server in an RPC call?

I want to do this since the client should be able to send a lot of different commands with different parameters and it had been nice and simple to just send an object instead of adding one method for each command. Or is there any other good way to solve this issue in unreal engine?

Product Version: Not Selected
Tags:
more ▼

asked Jun 06 '14 at 07:21 PM in C++ Programming

avatar image

undercover
853 126 112 138

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Jul 30 '14 at 01:51 PM by undercover for the following reason:

Problem is not reproducible or outdated


1 answer: sort voted first

You might be able to send a UStruct as a parameter in an RPC call. I haven't done it myself but that would be the first thing I'd try.

more ▼

answered Jun 07 '14 at 02:01 AM

avatar image

Acren
465 46 50 70

avatar image undercover Jun 09 '14 at 11:53 AM

You can send an UStruct but I would like the power of inheritance. Otherwise I would need one UStruct for each command and therefore also one method for each command anyway, so then I'm back were I started. I could just have been making the methods from the beginning then and taking the struct's data as method parameters directly.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question