Hi, first of all this isn't really a pressing matter or anything. I was just wondering something... Basically, as far as I've understood, AC creates it's own game object reference list when a scene is loaded (to speed up referencing). And I have a few scripts and custom actions that instantiate objects, so, for completeness sake, I was wondering, what is the right way to add this new objects to said list so AC is always aware of them? Or is this really not much of a problem at all? Are there situations where not adding the items to the list could lead to issues?
Anyway, as usual any advice would be greatly appreciated, though, this is more of an "I'm curious" situations that a real issue.
Comments
AC.KickStarter.stateHandler.GatherObjects ();
(It's also listed on the front page of the scripting guide)
This is only necessary, of course, if you need AC to be aware of any new objects - e.g. NPCs to update or objects to save the presence of.