I have two objectives set up in the Inventory Manager.
KickStarter.runtimeObjectives.GetObjectives(ObjectiveDisplayType.All) is returning an array of size 0.
Digging deeper, RuntimeObjectives.playerObjectiveInstances is empty.
Any idea why this might be? I did have this working, and now it is not... any idea where I might have clicked a thing that broke this?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Aaah got it: objectives need setting as active via an ActionScript in order to show up.
Ignore me! I'm an idiot.
It's not strictly via Actions, but an Objective will need to be made active before it will appear in RuntimeObjectives.
Similar to the way Inventory items are transferred from the Inventory Manager to RuntimeInventory, Objectives are transferred to RuntimeObjectives when their state is set.
This behaviour can be handled through code: if the SetObjectiveState function is used to update an Objective's state which was previously inactive, it'll be added to RuntimeObjectives automatically.
Perfect, thank you