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"

How can I create objects on the server from UMG blueprints?

I'm trying to create a UI that allows the user to stack UMG widgets and based on the stack it will create something different. The thing I'm trying to create is essentially a tree structure with many different possible nodes and subtrees. My intention was to take the stack and iterate through the widgets to build the tree, however this only works on the listen server. All the objects created on clients are null. This aligns with how I understand replication, but now I'm unsure how to solve my problem. I've tried a few things but these were the two big ideas I couldn't find success with:

  • Construct it on the client and pass it to the server and replicate it out

Anything I construct using the "Construct object from class" blueprint function is null when passed to the server from the clients. As far as I can tell, UMG can only exist on the client.

  • Create server functions to construct the nodes.

This works in a basic sense of creating objects, but I can't return them to the function that called it. I need to be able to connect nodes to build the tree, so this is either insufficient or I don't know how to do it well enough. I could maybe pass by reference and assign that way but I worry about undefined behaviour because I don't know what order the function calls will complete in, and I run the risk of hitting null pointers.

I'm a bit at a loss. Is what I want possible with Slate C++?

Product Version: UE 4.19
more ▼

asked Jun 13 '18 at 12:10 AM in Blueprint Scripting

avatar image

11 1 2

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

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question