C# Class Spine.Unity.SkeletonDataAsset

Inheritance: UnityEngine.ScriptableObject
显示文件 Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Properties

Property Type Description
atlasAssets Spine.Unity.AtlasAsset[]
controller UnityEngine.RuntimeAnimatorController
defaultMix float
duration float[]
fromAnimation string[]
scale float
skeletonJSON UnityEngine.TextAsset
spriteCollection tk2dSpriteCollectionData
toAnimation string[]

Public Methods

Method Description
Clear ( ) : void
CreateRuntimeInstance ( TextAsset skeletonDataFile, AtlasAsset atlasAsset, bool initialize, float scale = 0.01f ) : SkeletonDataAsset

Creates a runtime SkeletonDataAsset.

FillStateData ( ) : void
GetAnimationStateData ( ) : Spine.AnimationStateData
GetSkeletonData ( bool quiet ) : SkeletonData
Reset ( ) : void

Private Methods

Method Description
GetAtlasArray ( ) : Spine.Atlas[]
InitializeWithData ( SkeletonData sd ) : void
ReadSkeletonData ( byte bytes, AttachmentLoader attachmentLoader, float scale ) : SkeletonData
ReadSkeletonData ( string text, AttachmentLoader attachmentLoader, float scale ) : SkeletonData

Method Details

Clear() public method

public Clear ( ) : void
return void

CreateRuntimeInstance() public static method

Creates a runtime SkeletonDataAsset.
public static CreateRuntimeInstance ( TextAsset skeletonDataFile, AtlasAsset atlasAsset, bool initialize, float scale = 0.01f ) : SkeletonDataAsset
skeletonDataFile UnityEngine.TextAsset
atlasAsset AtlasAsset
initialize bool
scale float
return SkeletonDataAsset

FillStateData() public method

public FillStateData ( ) : void
return void

GetAnimationStateData() public method

public GetAnimationStateData ( ) : Spine.AnimationStateData
return Spine.AnimationStateData

GetSkeletonData() public method

public GetSkeletonData ( bool quiet ) : SkeletonData
quiet bool
return Spine.SkeletonData

Reset() public method

public Reset ( ) : void
return void

Property Details

atlasAssets public_oe property

public AtlasAsset[],Spine.Unity atlasAssets
return Spine.Unity.AtlasAsset[]

controller public_oe property

public RuntimeAnimatorController,UnityEngine controller
return UnityEngine.RuntimeAnimatorController

defaultMix public_oe property

public float defaultMix
return float

duration public_oe property

public float[] duration
return float[]

fromAnimation public_oe property

public string[] fromAnimation
return string[]

scale public_oe property

public float scale
return float

skeletonJSON public_oe property

public TextAsset,UnityEngine skeletonJSON
return UnityEngine.TextAsset

spriteCollection public_oe property

public tk2dSpriteCollectionData spriteCollection
return tk2dSpriteCollectionData

toAnimation public_oe property

public string[] toAnimation
return string[]