C# Class Anima2D.SpriteMeshCache

Inheritance: ScriptableObject, ISerializationCallbackReceiver
Afficher le fichier Open project: ArturoNereu/Unity2DAnimation Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description
ContainsVector bool
CreateBoneWeightFromWeights BoneWeight
GetBlendShapeFrame BlendShapeFrame
GetBlendshapePositions List
ToVector3List List
ToVertex Vector3
ToVertex Vector3
ToVertices List

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
DoOnAfterDeserialize ( ) : void

Private Methods

Méthode 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 méthode

public AddEdge ( Anima2D.Node node1, Anima2D.Node node2 ) : void
node1 Anima2D.Node
node2 Anima2D.Node
Résultat void

AddHole() public méthode

public AddHole ( Vector2 position ) : void
position Vector2
Résultat void

AddNode() public méthode

public AddNode ( Vector2 position ) : Anima2D.Node
position Vector2
Résultat Anima2D.Node

AddNode() public méthode

public AddNode ( Vector2 position, Anima2D.Edge edge ) : Anima2D.Node
position Vector2
edge Anima2D.Edge
Résultat Anima2D.Node

ApplyChanges() public méthode

public ApplyChanges ( ) : void
Résultat void

BeginSelection() public méthode

public BeginSelection ( ) : void
Résultat void

BindBone() public méthode

public BindBone ( Anima2D.Bone2D bone ) : void
bone Anima2D.Bone2D
Résultat void

BindBones() public méthode

public BindBones ( ) : void
Résultat void

CalculateAutomaticWeights() public méthode

public CalculateAutomaticWeights ( ) : void
Résultat void

CalculateAutomaticWeights() public méthode

public CalculateAutomaticWeights ( List targetNodes ) : void
targetNodes List
Résultat void

Clear() public méthode

public Clear ( string undoName ) : void
undoName string
Résultat void

ClearSelection() public méthode

public ClearSelection ( ) : void
Résultat void

ClearWeights() public méthode

public ClearWeights ( ) : void
Résultat void

CreateBlendShapeCache() public méthode

public CreateBlendShapeCache ( SpriteMeshData spriteMeshData ) : void
spriteMeshData SpriteMeshData
Résultat void

CreateBlendShapeFrame() public méthode

public CreateBlendShapeFrame ( BlendShape blendshape, float weight, string undoName ) : BlendShapeFrame
blendshape BlendShape
weight float
undoName string
Résultat BlendShapeFrame

CreateBlendshape() public méthode

public CreateBlendshape ( string name, string undoName = "" ) : BlendShape
name string
undoName string
Résultat BlendShape

DeleteBindPose() public méthode

public DeleteBindPose ( BindInfo bindPose ) : void
bindPose BindInfo
Résultat void

DeleteBlendShape() public méthode

public DeleteBlendShape ( BlendShape blendshape, string undoName = "" ) : void
blendshape BlendShape
undoName string
Résultat void

DeleteBlendShapeFrame() public méthode

public DeleteBlendShapeFrame ( BlendShape blendShape, BlendShapeFrame blendShapeFrame, string undoName = "" ) : void
blendShape BlendShape
blendShapeFrame BlendShapeFrame
undoName string
Résultat void

DeleteBone() public méthode

public DeleteBone ( Bone2D bone ) : void
bone Bone2D
Résultat void

DeleteEdge() public méthode

public DeleteEdge ( Edge edge ) : void
edge Edge
Résultat void

DeleteHole() public méthode

public DeleteHole ( Hole hole, bool triangulate = true ) : void
hole Hole
triangulate bool
Résultat void

DeleteNode() public méthode

public DeleteNode ( Node node, bool triangulate = true ) : void
node Node
triangulate bool
Résultat void

DestroyBlendShapeCache() public méthode

public DestroyBlendShapeCache ( string undoName ) : void
undoName string
Résultat void

DoOnAfterDeserialize() protected méthode

protected DoOnAfterDeserialize ( ) : void
Résultat void

EndSelection() public méthode

public EndSelection ( bool select ) : void
select bool
Résultat void

FillBoneWeights() public méthode

public FillBoneWeights ( List targetNodes, ].float[ weights ) : void
targetNodes List
weights ].float[
Résultat void

GetBoneNames() public méthode

public GetBoneNames ( string noBoneText ) : string[]
noBoneText string
Résultat string[]

GetBoneWeight() public méthode

public GetBoneWeight ( Node node ) : BoneWeight
node Node
Résultat BoneWeight

GetManipulableVertex() public méthode

public GetManipulableVertex ( int index ) : Vector3
index int
Résultat Vector3

GetManipulableVertexCount() public méthode

public GetManipulableVertexCount ( ) : int
Résultat int

GetTexVertices() public méthode

public GetTexVertices ( ) : List
Résultat List

GetTexVerticesV3() public méthode

public GetTexVerticesV3 ( ) : List
Résultat List

GetVertex() public méthode

public GetVertex ( Node node ) : Vector2
node Node
Résultat Vector2

InitFromOutline() public méthode

public InitFromOutline ( float detail, float alphaTolerance, bool holeDetection, float tessellation, string undoName ) : void
detail float
alphaTolerance float
holeDetection bool
tessellation float
undoName string
Résultat void

IsSelected() public méthode

public IsSelected ( Node node ) : bool
node Node
Résultat bool

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

PrepareManipulableVertices() public méthode

public PrepareManipulableVertices ( ) : void
Résultat void

RegisterUndo() public méthode

public RegisterUndo ( string undoName ) : void
undoName string
Résultat void

ResetVertices() public méthode

public ResetVertices ( List _nodes, string undoName = "" ) : void
_nodes List
undoName string
Résultat void

RevertChanges() public méthode

public RevertChanges ( ) : void
Résultat void

Select() public méthode

public Select ( Node node, bool append ) : void
node Node
append bool
Résultat void

SetBlendShapeFrameWeight() public méthode

public SetBlendShapeFrameWeight ( BlendShapeFrame blendShapeFrame, float weight, string undoName ) : void
blendShapeFrame BlendShapeFrame
weight float
undoName string
Résultat void

SetBlendShapesFromCache() public méthode

public SetBlendShapesFromCache ( ) : void
Résultat void

SetBoneWeight() public méthode

public SetBoneWeight ( Node node, BoneWeight boneWeight ) : void
node Node
boneWeight BoneWeight
Résultat void

SetManipulatedVertex() public méthode

public SetManipulatedVertex ( int index, Vector3 vertex ) : void
index int
vertex Vector3
Résultat void

SetPivotPoint() public méthode

public SetPivotPoint ( Vector2 _pivotPoint ) : void
_pivotPoint Vector2
Résultat void

SetSpriteMesh() public méthode

public SetSpriteMesh ( SpriteMesh _spriteMesh, SpriteMeshInstance _spriteMeshInstance ) : void
_spriteMesh SpriteMesh
_spriteMeshInstance SpriteMeshInstance
Résultat void

SetVertex() public méthode

public SetVertex ( Node node, Vector2 position ) : void
node Node
position Vector2
Résultat void

SetVertex() public méthode

public SetVertex ( int index, Vector2 position ) : void
index int
position Vector2
Résultat void

SmoothWeights() public méthode

public SmoothWeights ( List targetNodes ) : void
targetNodes List
Résultat void

SortBlendshapeFrames() public méthode

public SortBlendshapeFrames ( BlendShape blendShape ) : void
blendShape BlendShape
Résultat void

Triangulate() public méthode

public Triangulate ( ) : void
Résultat void

Unassign() public méthode

public Unassign ( BindInfo bindPose ) : void
bindPose BindInfo
Résultat void

Unassign() public méthode

public Unassign ( List targetNodes, BindInfo bindPose ) : void
targetNodes List
bindPose BindInfo
Résultat void

Unselect() public méthode

public Unselect ( Node node ) : void
node Node
Résultat void

UpdateVertices() public méthode

public UpdateVertices ( ) : void
Résultat void

Property Details

bindPoses public_oe property

public List bindPoses
Résultat List

blendshapes public_oe property

public List blendshapes
Résultat List

boneWeights public_oe property

public List boneWeights
Résultat List

edges public_oe property

public List edges
Résultat List

holes public_oe property

public List holes
Résultat List

indices public_oe property

public List indices
Résultat List

nodes public_oe property

public List nodes
Résultat List

pivotPoint public_oe property

public Vector2 pivotPoint
Résultat Vector2

rect public_oe property

public Rect rect
Résultat Rect

selectedBone public_oe property

public Bone2D selectedBone
Résultat Bone2D

selectedEdge public_oe property

public Edge selectedEdge
Résultat Edge

spriteMesh public_oe property

public SpriteMesh spriteMesh
Résultat SpriteMesh

spriteMeshData public_oe property

public SpriteMeshData spriteMeshData
Résultat SpriteMeshData

spriteMeshInstance public_oe property

public SpriteMeshInstance spriteMeshInstance
Résultat SpriteMeshInstance