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"

can i save actor's whole data?


i'm trying my game save, but it's too difficult. i'm using saveObject. but i have to save all variables of actors. it's so messy... please help me!

i found code in github. https://github.com/shinaka/UE4ActorSaveLoad can this code save Actor's CustomActorComponents and component's data? or have to save it with another solution?

https://www.youtube.com/watch?v=UHlI7iG3PQA this bot have many components.

and this is one weapon. (it has actor components too!) alt text

and this is my one actor's struct for saving (really messy) ​alt text

p.s : what is "ActorData"? some type?

Product Version: UE 4.12
actorcomponent.png (48.7 kB)
savestruct.png (250.3 kB)
more ▼

asked Jun 03 '16 at 02:52 PM in Using UE4

avatar image

30 4 10 16

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

1 answer: sort voted first

save structs that contain enough information to spawn actors, instead of saving actors.

https://github.com/shinaka/UE4ActorSaveLoad/blob/master/PersistentStore.h line 29:

 TArray<uint8> ActorData;   // ActorData is an array of bytes 
more ▼

answered Jun 03 '16 at 03:05 PM

avatar image

9.6k 320 205 450

avatar image vanditKing Jun 03 '16 at 03:32 PM

what is "ActorData"? one of UE4's type?

avatar image ScottSpadea Jun 03 '16 at 03:50 PM

no, its not from UE4, its a custom array variable, declared in PersistentStore, inside the github source code link you posted. its just an array of bytes, that is inside a struct, inside another struct.

ActorData is populated from the result of Actor->Serialize, which compresses the data of an actor into binary, as an array of bytes.


avatar image vanditKing Jun 04 '16 at 04:08 AM

thx a lot! i need to study c++ have a nice day!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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