C# Class tk2dSpriteDefinition, Malisse

Mostrar archivo 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_oe property

public Vector3[] boundsData
return Vector3[]

colliderConvex public_oe property

public bool colliderConvex
return bool

colliderIndicesBack public_oe property

public int[] colliderIndicesBack
return int[]

colliderIndicesFwd public_oe property

public int[] colliderIndicesFwd
return int[]

colliderSmoothSphereCollisions public_oe property

public bool colliderSmoothSphereCollisions
return bool

colliderType public_oe property

Collider type
public ColliderType colliderType
return ColliderType

colliderVertices public_oe 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_oe property

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

extractRegion public_oe 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_oe property

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

indices public_oe property

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

material public_oe 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_oe 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_oe property

Name
public string name
return string

normals public_oe property

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

positions public_oe property

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

regionX public_oe property

public int regionX
return int

sourceTextureGUID public_oe 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_oe property

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

texelSize public_oe property

public Vector2 texelSize
return Vector2

untrimmedBoundsData public_oe property

public Vector3[] untrimmedBoundsData
return Vector3[]

uvs public_oe property

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