Summary
Connects this state to the `parent` state at the specified `index`.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerState
Syntax
public void SetParent(AnimancerNode parent, int index)
Remarks
If the `parent` is null, this state will be disconnected from everything.
Use
Animancer.AnimancerLayer.AddChild(Animancer.AnimancerState)
instead of this method to connect to a layer.
Parameters
Name | Type | Description |
---|---|---|
parent | AnimancerNode | |
index | int |
Return Value
Type | Description |
---|---|
void |