Hi
I'm trying to set an ActionListAsset parameter by code and I've read on this forum that it is done simple by this:
ActionListAsset playDialogueAL = Resources.Load("ActionLists/PlayDialogueAL", typeof(ActionListAsset)) as ActionListAsset;
playDialogueAL.parameters[0].SetValue(1);
playDialogueAL.Interact();
However, when I use this method I get the error: 'ActionListAsset.parameters' is inaccessible due to its protection level.
Is this method outdated?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Yes - you can now use the GetParameter method to get a parameter by its ID or name, i.e.:
Ah, yes of course. I missed that updated section in the manual.
Thanks!