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"

How to do conditional serialization properly?

Hey everyone,

TL;DR: I want an object that: - Always saves itself to an uncooked package - Saves itself to a cooked package under certain conditions only

Details:

I have created a “manager” class for my data and this manager object exists within the UWorld class. Inside the manager object I have a set of smaller “state” objects and a few settings that can be set from the editor. I want the manager object to only be saved when it has at least one state object OR when we are NOT cooking. The logic is that the level designer may have edited some settings on the manager object so we should always save it when saving in editor. But the manager object is useless on runtime when it has no state objects so I would like to check it when cooking so I can save some memory on cooked builds.

Thanks!

Robert.

Product Version: Not Selected
Tags:
more ▼

asked Apr 17 '18 at 10:14 PM in C++ Programming

avatar image

Robert Khalikov
137 9 10 18

(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