C# Class Anima2D.SpriteMeshCache

Inheritance: ScriptableObject, ISerializationCallbackReceiver
Datei anzeigen Open project: ArturoNereu/Unity2DAnimation Class Usage Examples

Public Properties

Property Type Description
bindPoses List
blendshapes List
boneWeights List
edges List
holes List
indices List
nodes List
pivotPoint Vector2
rect Rect
selectedBone Bone2D
selectedEdge Edge
spriteMesh SpriteMesh
spriteMeshData SpriteMeshData
spriteMeshInstance SpriteMeshInstance

Private Properties

Property Type Description
ContainsVector bool
CreateBoneWeightFromWeights BoneWeight
GetBlendShapeFrame BlendShapeFrame
GetBlendshapePositions List
ToVector3List List
ToVertex Vector3
ToVertex Vector3
ToVertices List

Public Methods

Method Description
AddEdge ( Anima2D.Node node1, Anima2D.Node node2 ) : void
AddHole ( Vector2 position ) : void
AddNode ( Vector2 position ) : Anima2D.Node
AddNode ( Vector2 position, Anima2D.Edge edge ) : Anima2D.Node
ApplyChanges ( ) : void
BeginSelection ( ) : void
BindBone ( Anima2D.Bone2D bone ) : void
BindBones ( ) : void
CalculateAutomaticWeights ( ) : void
CalculateAutomaticWeights ( List targetNodes ) : void
Clear ( string undoName ) : void
ClearSelection ( ) : void
ClearWeights ( ) : void
CreateBlendShapeCache ( SpriteMeshData spriteMeshData ) : void
CreateBlendShapeFrame ( BlendShape blendshape, float weight, string undoName ) : BlendShapeFrame
CreateBlendshape ( string name, string undoName = "" ) : BlendShape
DeleteBindPose ( BindInfo bindPose ) : void
DeleteBlendShape ( BlendShape blendshape, string undoName = "" ) : void
DeleteBlendShapeFrame ( BlendShape blendShape, BlendShapeFrame blendShapeFrame, string undoName = "" ) : void
DeleteBone ( Bone2D bone ) : void
DeleteEdge ( Edge edge ) : void
DeleteHole ( Hole hole, bool triangulate = true ) : void
DeleteNode ( Node node, bool triangulate = true ) : void
DestroyBlendShapeCache ( string undoName ) : void
EndSelection ( bool select ) : void
FillBoneWeights ( List targetNodes, ].float[ weights ) : void
GetBoneNames ( string noBoneText ) : string[]
GetBoneWeight ( Node node ) : BoneWeight
GetManipulableVertex ( int index ) : Vector3
GetManipulableVertexCount ( ) : int
GetTexVertices ( ) : List
GetTexVerticesV3 ( ) : List
GetVertex ( Node node ) : Vector2
InitFromOutline ( float detail, float alphaTolerance, bool holeDetection, float tessellation, string undoName ) : void
IsSelected ( Node node ) : bool
OnEnable ( ) : void
PrepareManipulableVertices ( ) : void
RegisterUndo ( string undoName ) : void
ResetVertices ( List _nodes, string undoName = "" ) : void
RevertChanges ( ) : void
Select ( Node node, bool append ) : void
SetBlendShapeFrameWeight ( BlendShapeFrame blendShapeFrame, float weight, string undoName ) : void
SetBlendShapesFromCache ( ) : void
SetBoneWeight ( Node node, BoneWeight boneWeight ) : void
SetManipulatedVertex ( int index, Vector3 vertex ) : void
SetPivotPoint ( Vector2 _pivotPoint ) : void
SetSpriteMesh ( SpriteMesh _spriteMesh, SpriteMeshInstance _spriteMeshInstance ) : void
SetVertex ( Node node, Vector2 position ) : void
SetVertex ( int index, Vector2 position ) : void
SmoothWeights ( List targetNodes ) : void
SortBlendshapeFrames ( BlendShape blendShape ) : void
Triangulate ( ) : void
Unassign ( BindInfo bindPose ) : void
Unassign ( List targetNodes, BindInfo bindPose ) : void
Unselect ( Node node ) : void
UpdateVertices ( ) : void

Protected Methods

Method Description
DoOnAfterDeserialize ( ) : void

Private Methods

Method Description
ContainsVector ( Vector2 vectorToFind, List list, float epsilon, int &index ) : bool
CreateBoneWeightFromWeights ( List weights ) : BoneWeight
GetBlendShapeFrame ( ) : BlendShapeFrame
GetBlendshapePositions ( BlendShape blendshape, float weight ) : List
ToVector3List ( List list ) : List
ToVertex ( Vector2 v ) : Vector3
ToVertex ( Vector2 v, float pixelsPerUnit ) : Vector3
ToVertices ( List list ) : List

Method Details

AddEdge() public method

public AddEdge ( Anima2D.Node node1, Anima2D.Node node2 ) : void
node1 Anima2D.Node
node2 Anima2D.Node
return void

AddHole() public method

public AddHole ( Vector2 position ) : void
position Vector2
return void

AddNode() public method

public AddNode ( Vector2 position ) : Anima2D.Node
position Vector2
return Anima2D.Node

AddNode() public method

public AddNode ( Vector2 position, Anima2D.Edge edge ) : Anima2D.Node
position Vector2
edge Anima2D.Edge
return Anima2D.Node

ApplyChanges() public method

public ApplyChanges ( ) : void
return void

BeginSelection() public method

public BeginSelection ( ) : void
return void

BindBone() public method

public BindBone ( Anima2D.Bone2D bone ) : void
bone Anima2D.Bone2D
return void

BindBones() public method

public BindBones ( ) : void
return void

CalculateAutomaticWeights() public method

public CalculateAutomaticWeights ( ) : void
return void

CalculateAutomaticWeights() public method

public CalculateAutomaticWeights ( List targetNodes ) : void
targetNodes List
return void

Clear() public method

public Clear ( string undoName ) : void
undoName string
return void

ClearSelection() public method

public ClearSelection ( ) : void
return void

ClearWeights() public method

public ClearWeights ( ) : void
return void

CreateBlendShapeCache() public method

public CreateBlendShapeCache ( SpriteMeshData spriteMeshData ) : void
spriteMeshData SpriteMeshData
return void

CreateBlendShapeFrame() public method

public CreateBlendShapeFrame ( BlendShape blendshape, float weight, string undoName ) : BlendShapeFrame
blendshape BlendShape
weight float
undoName string
return BlendShapeFrame

CreateBlendshape() public method

public CreateBlendshape ( string name, string undoName = "" ) : BlendShape
name string
undoName string
return BlendShape

DeleteBindPose() public method

public DeleteBindPose ( BindInfo bindPose ) : void
bindPose BindInfo
return void

DeleteBlendShape() public method

public DeleteBlendShape ( BlendShape blendshape, string undoName = "" ) : void
blendshape BlendShape
undoName string
return void

DeleteBlendShapeFrame() public method

public DeleteBlendShapeFrame ( BlendShape blendShape, BlendShapeFrame blendShapeFrame, string undoName = "" ) : void
blendShape BlendShape
blendShapeFrame BlendShapeFrame
undoName string
return void

DeleteBone() public method

public DeleteBone ( Bone2D bone ) : void
bone Bone2D
return void

DeleteEdge() public method

public DeleteEdge ( Edge edge ) : void
edge Edge
return void

DeleteHole() public method

public DeleteHole ( Hole hole, bool triangulate = true ) : void
hole Hole
triangulate bool
return void

DeleteNode() public method

public DeleteNode ( Node node, bool triangulate = true ) : void
node Node
triangulate bool
return void

DestroyBlendShapeCache() public method

public DestroyBlendShapeCache ( string undoName ) : void
undoName string
return void

DoOnAfterDeserialize() protected method

protected DoOnAfterDeserialize ( ) : void
return void

EndSelection() public method

public EndSelection ( bool select ) : void
select bool
return void

FillBoneWeights() public method

public FillBoneWeights ( List targetNodes, ].float[ weights ) : void
targetNodes List
weights ].float[
return void

GetBoneNames() public method

public GetBoneNames ( string noBoneText ) : string[]
noBoneText string
return string[]

GetBoneWeight() public method

public GetBoneWeight ( Node node ) : BoneWeight
node Node
return BoneWeight

GetManipulableVertex() public method

public GetManipulableVertex ( int index ) : Vector3
index int
return Vector3

GetManipulableVertexCount() public method

public GetManipulableVertexCount ( ) : int
return int

GetTexVertices() public method

public GetTexVertices ( ) : List
return List

GetTexVerticesV3() public method

public GetTexVerticesV3 ( ) : List
return List

GetVertex() public method

public GetVertex ( Node node ) : Vector2
node Node
return Vector2

InitFromOutline() public method

public InitFromOutline ( float detail, float alphaTolerance, bool holeDetection, float tessellation, string undoName ) : void
detail float
alphaTolerance float
holeDetection bool
tessellation float
undoName string
return void

IsSelected() public method

public IsSelected ( Node node ) : bool
node Node
return bool

OnEnable() public method

public OnEnable ( ) : void
return void

PrepareManipulableVertices() public method

public PrepareManipulableVertices ( ) : void
return void

RegisterUndo() public method

public RegisterUndo ( string undoName ) : void
undoName string
return void

ResetVertices() public method

public ResetVertices ( List _nodes, string undoName = "" ) : void
_nodes List
undoName string
return void

RevertChanges() public method

public RevertChanges ( ) : void
return void

Select() public method

public Select ( Node node, bool append ) : void
node Node
append bool
return void

SetBlendShapeFrameWeight() public method

public SetBlendShapeFrameWeight ( BlendShapeFrame blendShapeFrame, float weight, string undoName ) : void
blendShapeFrame BlendShapeFrame
weight float
undoName string
return void

SetBlendShapesFromCache() public method

public SetBlendShapesFromCache ( ) : void
return void

SetBoneWeight() public method

public SetBoneWeight ( Node node, BoneWeight boneWeight ) : void
node Node
boneWeight BoneWeight
return void

SetManipulatedVertex() public method

public SetManipulatedVertex ( int index, Vector3 vertex ) : void
index int
vertex Vector3
return void

SetPivotPoint() public method

public SetPivotPoint ( Vector2 _pivotPoint ) : void
_pivotPoint Vector2
return void

SetSpriteMesh() public method

public SetSpriteMesh ( SpriteMesh _spriteMesh, SpriteMeshInstance _spriteMeshInstance ) : void
_spriteMesh SpriteMesh
_spriteMeshInstance SpriteMeshInstance
return void

SetVertex() public method

public SetVertex ( Node node, Vector2 position ) : void
node Node
position Vector2
return void

SetVertex() public method

public SetVertex ( int index, Vector2 position ) : void
index int
position Vector2
return void

SmoothWeights() public method

public SmoothWeights ( List targetNodes ) : void
targetNodes List
return void

SortBlendshapeFrames() public method

public SortBlendshapeFrames ( BlendShape blendShape ) : void
blendShape BlendShape
return void

Triangulate() public method

public Triangulate ( ) : void
return void

Unassign() public method

public Unassign ( BindInfo bindPose ) : void
bindPose BindInfo
return void

Unassign() public method

public Unassign ( List targetNodes, BindInfo bindPose ) : void
targetNodes List
bindPose BindInfo
return void

Unselect() public method

public Unselect ( Node node ) : void
node Node
return void

UpdateVertices() public method

public UpdateVertices ( ) : void
return void

Property Details

bindPoses public_oe property

public List bindPoses
return List

blendshapes public_oe property

public List blendshapes
return List

boneWeights public_oe property

public List boneWeights
return List

edges public_oe property

public List edges
return List

holes public_oe property

public List holes
return List

indices public_oe property

public List indices
return List

nodes public_oe property

public List nodes
return List

pivotPoint public_oe property

public Vector2 pivotPoint
return Vector2

rect public_oe property

public Rect rect
return Rect

selectedBone public_oe property

public Bone2D selectedBone
return Bone2D

selectedEdge public_oe property

public Edge selectedEdge
return Edge

spriteMesh public_oe property

public SpriteMesh spriteMesh
return SpriteMesh

spriteMeshData public_oe property

public SpriteMeshData spriteMeshData
return SpriteMeshData

spriteMeshInstance public_oe property

public SpriteMeshInstance spriteMeshInstance
return SpriteMeshInstance