C# Class tk2dSpriteDefinition, Malisse

Show file Open project: Collegiennes/Malisse Class Usage Examples

Public Properties

Property Type Description
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[]

Property Details

boundsData public property

public Vector3[] boundsData
return Vector3[]

colliderConvex public property

public bool colliderConvex
return bool

colliderIndicesBack public property

public int[] colliderIndicesBack
return int[]

colliderIndicesFwd public property

public int[] colliderIndicesFwd
return int[]

colliderSmoothSphereCollisions public property

public bool colliderSmoothSphereCollisions
return bool

colliderType public property

Collider type
public ColliderType colliderType
return ColliderType

colliderVertices public property

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
return Vector3[]

complexGeometry public property

Specifies if this texture has complex geometry
public bool complexGeometry
return bool

extractRegion public property

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

flipped public property

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

indices public property

Array of indices for sprite geometry.
public int[] indices
return int[]

material public property

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
return Material

materialId public property

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
return int

name public property

Name
public string name
return string

normals public property

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

positions public property

Array of positions for sprite geometry.
public Vector3[] positions
return Vector3[]

regionX public property

public int regionX
return int

sourceTextureGUID public property

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

tangents public property

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

texelSize public property

public Vector2 texelSize
return Vector2

untrimmedBoundsData public property

public Vector3[] untrimmedBoundsData
return Vector3[]

uvs public property

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