C# 클래스 tk2dSpriteDefinition, Malisse

파일 보기 프로젝트 열기: Collegiennes/Malisse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
boundsData Vector3[]
colliderConvex bool
colliderIndicesBack int[]
colliderIndicesFwd int[]
colliderSmoothSphereCollisions bool
colliderType ColliderType
colliderVertices Vector3[]
complexGeometry bool
extractRegion bool
flipped bool
indices int[]
material Material
materialId int
name string
normals Vector3[]
positions Vector3[]
regionX int
sourceTextureGUID string
tangents Vector4[]
texelSize Vector2
untrimmedBoundsData Vector3[]
uvs Vector2[]

프로퍼티 상세

boundsData 공개적으로 프로퍼티

public Vector3[] boundsData
리턴 Vector3[]

colliderConvex 공개적으로 프로퍼티

public bool colliderConvex
리턴 bool

colliderIndicesBack 공개적으로 프로퍼티

public int[] colliderIndicesBack
리턴 int[]

colliderIndicesFwd 공개적으로 프로퍼티

public int[] colliderIndicesFwd
리턴 int[]

colliderSmoothSphereCollisions 공개적으로 프로퍼티

public bool colliderSmoothSphereCollisions
리턴 bool

colliderType 공개적으로 프로퍼티

Collider type
public ColliderType colliderType
리턴 ColliderType

colliderVertices 공개적으로 프로퍼티

v0 and v1 are center and size respectively for box colliders when colliderType is Box. It is an array of vertices, and the geometry defined by indices when colliderType is Mesh.
public Vector3[] colliderVertices
리턴 Vector3[]

complexGeometry 공개적으로 프로퍼티

Specifies if this texture has complex geometry
public bool complexGeometry
리턴 bool

extractRegion 공개적으로 프로퍼티

Speficies if this texture is extracted from a larger texture source, for instance an atlas. This is used in the inspector.
public bool extractRegion
리턴 bool

flipped 공개적으로 프로퍼티

Specifies if this texture is flipped to its side (rotated) in the atlas
public bool flipped
리턴 bool

indices 공개적으로 프로퍼티

Array of indices for sprite geometry.
public int[] indices
리턴 int[]

material 공개적으로 프로퍼티

The material used by this sprite. This is generally the same on all sprites in a colletion, but this is not true when multi-atlas spanning is enabled.
public Material material
리턴 Material

materialId 공개적으로 프로퍼티

The material id used by this sprite. This is an index into the materials array and corresponds to the material flag above.
public int materialId
리턴 int

name 공개적으로 프로퍼티

Name
public string name
리턴 string

normals 공개적으로 프로퍼티

Array of normals for sprite geometry, zero length array if they dont exist
public Vector3[] normals
리턴 Vector3[]

positions 공개적으로 프로퍼티

Array of positions for sprite geometry.
public Vector3[] positions
리턴 Vector3[]

regionX 공개적으로 프로퍼티

public int regionX
리턴 int

sourceTextureGUID 공개적으로 프로퍼티

Source texture GUID - this is used by the inspector to find the source image without adding a unity dependency.
public string sourceTextureGUID
리턴 string

tangents 공개적으로 프로퍼티

Array of tangents for sprite geometry, zero length array if they dont exist
public Vector4[] tangents
리턴 Vector4[]

texelSize 공개적으로 프로퍼티

public Vector2 texelSize
리턴 Vector2

untrimmedBoundsData 공개적으로 프로퍼티

public Vector3[] untrimmedBoundsData
리턴 Vector3[]

uvs 공개적으로 프로퍼티

Array of UVs for sprite geometry, will match the position count.
public Vector2[] uvs
리턴 Vector2[]