Add IAacDefaultsProvider.ConfigureStateMachine(...) to position the core nodes
This commit is contained in:
@@ -11,6 +11,7 @@ namespace AnimatorAsCode.V0
|
||||
string ConvertLayerName(string systemName);
|
||||
string ConvertLayerNameWithSuffix(string systemName, string suffix);
|
||||
Vector2 Grid();
|
||||
void ConfigureStateMachine(AnimatorStateMachine stateMachine);
|
||||
}
|
||||
|
||||
public class AacDefaultsProvider : IAacDefaultsProvider
|
||||
@@ -54,5 +55,14 @@ namespace AnimatorAsCode.V0
|
||||
{
|
||||
return new Vector2(250, 70);
|
||||
}
|
||||
|
||||
public void ConfigureStateMachine(AnimatorStateMachine stateMachine)
|
||||
{
|
||||
var grid = Grid();
|
||||
stateMachine.anyStatePosition = grid * new Vector2(0, 7);
|
||||
stateMachine.entryPosition = grid * new Vector2(0, -1);
|
||||
stateMachine.exitPosition = grid * new Vector2(7, -1);
|
||||
stateMachine.parentStateMachinePosition = grid * new Vector2(3, -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user