Class IKManager2D
Component responsible for managing and updating 2D IK Solvers.
Inherited Members
Object.GetEntityId()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.U2D.IK
Assembly: Unity.2D.IK.Runtime.dll
Syntax
[DefaultExecutionOrder(-10)]
[MovedFrom("UnityEngine.Experimental.U2D.IK")]
[Icon("Packages/com.unity.2d.animation/Editor/Assets/ComponentIcons/Animation.IKManager.png")]
[ExecuteInEditMode]
public class IKManager2D : MonoBehaviour
Properties
alwaysUpdate
Solvers are always updated even if the underlying Sprite Skins are not visible.
Declaration
public bool alwaysUpdate { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
solvers
Get the Solvers that are managed by this manager.
Declaration
public List<Solver2D> solvers { get; }
Property Value
| Type | Description |
|---|---|
| List<Solver2D> |
weight
Get and set the weight for solvers.
Declaration
public float weight { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
AddSolver(Solver2D)
Add Solver to the manager.
Declaration
public void AddSolver(Solver2D solver)
Parameters
| Type | Name | Description |
|---|---|---|
| Solver2D | solver | Solver to add. |
OnPreviewUpdate()
Used by the animation clip preview window. Recommended to not use outside of this purpose.
Declaration
public void OnPreviewUpdate()
RemoveSolver(Solver2D)
Remove Solver from the manager.
Declaration
public void RemoveSolver(Solver2D solver)
Parameters
| Type | Name | Description |
|---|---|---|
| Solver2D | solver | Solver to remove. |
UpdateManager()
Updates the Solvers in this manager.
Declaration
public void UpdateManager()