Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when initializing StateMachine #148

Closed
DeivSky opened this issue Nov 5, 2020 · 0 comments · Fixed by #149
Closed

Error when initializing StateMachine #148

DeivSky opened this issue Nov 5, 2020 · 0 comments · Fixed by #149
Labels
bug (important) This needs to be fixed before shipping, but not as a first priority

Comments

@DeivSky
Copy link
Contributor

DeivSky commented Nov 5, 2020

An exception is thrown when initializing a StateMachine.

The StateMachine should get initialized properly.

To reproduce

  1. Create an empty GameObject and add a StateMachine component to it.
  2. Make a chain of States and Transitions like the following (Actions and Conditions are not important):
    StateA => TransitionA => StateB => TransitionA
    StateA => TransitionA => StateB => TransitionB => StateC => TransitionA
  3. Set StateA as the initial State of the StateMachine.
  4. Start play mode.
  5. An unhandled exception shows up in the log and the StateMachine gets disabled.
@ciro-unity ciro-unity linked a pull request Nov 5, 2020 that will close this issue
@ciro-unity ciro-unity added the bug (important) This needs to be fixed before shipping, but not as a first priority label Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (important) This needs to be fixed before shipping, but not as a first priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants