MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetState

Method GetState

Source/Engine/Utilities/StateMachine.cs:47–50  ·  view source on GitHub ↗

Gets state of given type. The type of the state.

()

Source from the content-addressed store, hash-verified

45 /// </summary>
46 /// <typeparam name="TStateType">The type of the state.</typeparam>
47 public State GetState<TStateType>()
48 {
49 return states.Find(x => x.GetType() == typeof(TStateType));
50 }
51
52 /// <summary>
53 /// Goes to the state.

Callers 1

CaptureMethod · 0.45

Calls 2

FindMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected