C# Класс tk2dSpriteDefinition, Malisse

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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[]