You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unity version 2018.2.151f1. After updating to GameFlow v1.1.2 the Group action is throwing a NullReferenceException, as long as it contains at least one action. I've tried several different actions inside the Group action, and they all cause an exception to be thrown, though the message displayed varies.
When the Group contains Interpoplate or Wait actions, the exception reads
NullReferenceException: Object reference not set to an instance of an object
GameFlow.TimeAction.StartTimer ()
GameFlow.TimeAction._OnSetup ()
GameFlow.Block.Setup ()
GameFlow.Group.OnSetup ()
GameFlow.Block._OnSetup ()
GameFlow.Block.Setup ()
GameFlow.Sequence.Step (Boolean ignoreBreakpoint)
GameFlow.Program.Step (Boolean ignorePause)
GameFlow.Program.Update ()
When the Group contains Set Variable Value or Play Sound actions, the exception reads
NullReferenceException: Object reference not set to an instance of an object
GameFlow.Group.OnExecute ()
GameFlow.Sequence.Step (Boolean ignoreBreakpoint)
GameFlow.Program.Step (Boolean ignorePause)
GameFlow.Program.Update ()
If the Group action is empty, it does not throw an exception.
To reproduce:
Create a new scene and make sure the newest version of GameFlow is imported.
Create three cubes. Position one in the middle and deactivate it. This will be the interpolate target. Move the other two to opposite ends of the screen.
Attach the GameFlow component to the Main Camera.
Add the OnStart program to the GameFlow component.
Add two Interpolate actions, and have both side cubes interpolate their position to the middle cube.
Run the scene. The two cubes should move to the center, one right after the other.
Stop the scene, and create a Group action in the GameFlow component, and then move both interpolate actions inside the group.
Run the scene again. This time, the cubes do not move, and the console is filled with NullReferenceException messages.
The text was updated successfully, but these errors were encountered:
Unity version 2018.2.151f1. After updating to GameFlow v1.1.2 the Group action is throwing a NullReferenceException, as long as it contains at least one action. I've tried several different actions inside the Group action, and they all cause an exception to be thrown, though the message displayed varies.
When the Group contains Interpoplate or Wait actions, the exception reads
When the Group contains Set Variable Value or Play Sound actions, the exception reads
If the Group action is empty, it does not throw an exception.
To reproduce:
The text was updated successfully, but these errors were encountered: