Class IKManager2D
Component to manager 2D IK Solvers.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.U2D.IK
Syntax
[DefaultExecutionOrder(-2)]
[MovedFrom("UnityEngine.Experimental.U2D.IK")]
[ExecuteInEditMode]
public class IKManager2D : MonoBehaviour, IPreviewableProperties
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 | 
|---|---|
| Single | 
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()