I have enemies that are inactive on start, they are out of site.
Can I save their info and load it as well?
I just did a transform test
(I did make a reference to it in scene in a list)
save gameobject.transform while it was in view playing then quit and new game hit load and he was at his starting position but the player went to where I was supposed to be.
The game system disables the objects at runtime since they have to be registered with my AImanager and get disabled when not in view (in another room etc)
I need to be able to change values on an inactive object.
Set Fields on inactive object?
Re: Set Fields on inactive object?
Hi there,
You should be able to change values on an inactive object as long as your save and load code isn't in a script on that object (otherwise none of it's events will be called).
All the best,
Joel
You should be able to change values on an inactive object as long as your save and load code isn't in a script on that object (otherwise none of it's events will be called).
All the best,
Joel
Re: Set Fields on inactive object?
Thanks. Haven't tested it yet but I noticed that I was saving the empty parent and not the actual AI child!
That would explain why the AI was always at the start point...
At least I hope this is the case.
That would explain why the AI was always at the start point...
At least I hope this is the case.