C# 클래스 Spine.Unity.AtlasAsset

Loads and stores a Spine atlas and list of materials.
상속: UnityEngine.ScriptableObject
파일 보기 프로젝트 열기: EsotericSoftware/spine-runtimes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
atlasFile UnityEngine.TextAsset
materials UnityEngine.Material[]

보호된 프로퍼티들

프로퍼티 타입 설명
atlas Spine.Atlas

공개 메소드들

메소드 설명
Clear ( ) : void
CreateRuntimeInstance ( TextAsset atlasText, Material materials, bool initialize ) : AtlasAsset

Creates a runtime AtlasAsset

CreateRuntimeInstance ( TextAsset atlasText, Texture2D textures, Shader shader, bool initialize ) : AtlasAsset

Creates a runtime AtlasAsset. Only providing the textures is slower because it has to search for atlas page matches. Spine.Unity.AtlasAsset.CreateRuntimeInstance(TextAsset, Material[], bool)

GenerateMesh ( string name, Mesh mesh, Material &material, float scale = 0.01f ) : Mesh
GetAtlas ( ) : Atlas
Reset ( ) : void

메소드 상세

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

CreateRuntimeInstance() 공개 정적인 메소드

Creates a runtime AtlasAsset
public static CreateRuntimeInstance ( TextAsset atlasText, Material materials, bool initialize ) : AtlasAsset
atlasText UnityEngine.TextAsset
materials UnityEngine.Material
initialize bool
리턴 AtlasAsset

CreateRuntimeInstance() 공개 정적인 메소드

Creates a runtime AtlasAsset. Only providing the textures is slower because it has to search for atlas page matches. Spine.Unity.AtlasAsset.CreateRuntimeInstance(TextAsset, Material[], bool)
public static CreateRuntimeInstance ( TextAsset atlasText, Texture2D textures, Shader shader, bool initialize ) : AtlasAsset
atlasText UnityEngine.TextAsset
textures UnityEngine.Texture2D
shader UnityEngine.Shader
initialize bool
리턴 AtlasAsset

GenerateMesh() 공개 메소드

public GenerateMesh ( string name, Mesh mesh, Material &material, float scale = 0.01f ) : Mesh
name string
mesh UnityEngine.Mesh
material UnityEngine.Material
scale float
리턴 UnityEngine.Mesh

GetAtlas() 공개 메소드

public GetAtlas ( ) : Atlas
리턴 Spine.Atlas

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

프로퍼티 상세

atlas 보호되어 있는 프로퍼티

protected Atlas,Spine atlas
리턴 Spine.Atlas

atlasFile 공개적으로 프로퍼티

public TextAsset,UnityEngine atlasFile
리턴 UnityEngine.TextAsset

materials 공개적으로 프로퍼티

public Material[],UnityEngine materials
리턴 UnityEngine.Material[]