C# Class UnityEditor.Animations.BlendTree

Blend trees are used to blend continuously animation between their childs. They can either be 1D or 2D.

Inheritance: UnityEngine.Motion
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
AddChild void
CreateBlendTreeChild BlendTree
GetAnimationClipsFlattened UnityEngine.AnimationClip[]
GetChildCount int
GetChildMotion UnityEngine.Motion
GetDirectBlendTreeParameter string
GetInputBlendValue float
GetRecursiveBlendParameter string
GetRecursiveBlendParameterMax float
GetRecursiveBlendParameterMin float
HasChild bool
Internal_Create void
SetDirectBlendTreeParameter void
SetInputBlendValue void
SortChildren void

Public Methods

Method Description
AddChild ( Motion motion ) : void

Utility function to add a child motion to a blend trees.

AddChild ( Motion motion, Vector2 position ) : void

Utility function to add a child motion to a blend trees.

AddChild ( Motion motion, float threshold ) : void

Utility function to add a child motion to a blend trees.

BlendTree ( ) : System
CreateBlendTreeChild ( Vector2 position ) : BlendTree

Utility function to add a child blend tree to a blend tree.

CreateBlendTreeChild ( float threshold ) : BlendTree

Utility function to add a child blend tree to a blend tree.

RemoveChild ( int index ) : void

Utility function to remove the child of a blend tree.

Private Methods

Method Description
AddChild ( Motion motion, Vector2 position, float threshold ) : void
CreateBlendTreeChild ( Vector2 position, float threshold ) : BlendTree
GetAnimationClipsFlattened ( ) : UnityEngine.AnimationClip[]
GetChildCount ( ) : int
GetChildMotion ( int index ) : Motion
GetDirectBlendTreeParameter ( int index ) : string
GetInputBlendValue ( string blendValueName ) : float
GetRecursiveBlendParameter ( int index ) : string
GetRecursiveBlendParameterMax ( int index ) : float
GetRecursiveBlendParameterMin ( int index ) : float
HasChild ( BlendTree childTree, bool recursive ) : bool
Internal_Create ( BlendTree mono ) : void
SetDirectBlendTreeParameter ( int index, string parameter ) : void
SetInputBlendValue ( string blendValueName, float value ) : void
SortChildren ( ) : void

Method Details

AddChild() public method

Utility function to add a child motion to a blend trees.

public AddChild ( Motion motion ) : void
motion UnityEngine.Motion The motion to add as child.
return void

AddChild() public method

Utility function to add a child motion to a blend trees.

public AddChild ( Motion motion, Vector2 position ) : void
motion UnityEngine.Motion The motion to add as child.
position UnityEngine.Vector2 The position of the child. When using 2D blend trees.
return void

AddChild() public method

Utility function to add a child motion to a blend trees.

public AddChild ( Motion motion, float threshold ) : void
motion UnityEngine.Motion The motion to add as child.
threshold float The threshold of the child. When using 1D blend trees.
return void

BlendTree() public method

public BlendTree ( ) : System
return System

CreateBlendTreeChild() public method

Utility function to add a child blend tree to a blend tree.

public CreateBlendTreeChild ( Vector2 position ) : BlendTree
position UnityEngine.Vector2 The position of the child. When using 2D blend trees.
return BlendTree

CreateBlendTreeChild() public method

Utility function to add a child blend tree to a blend tree.

public CreateBlendTreeChild ( float threshold ) : BlendTree
threshold float The threshold of the child. When using 1D blend trees.
return BlendTree

RemoveChild() public method

Utility function to remove the child of a blend tree.

public RemoveChild ( int index ) : void
index int The index of the blend tree to remove.
return void