C# Class tk2dSpriteDefinition, Malisse

Afficher le fichier Open project: Collegiennes/Malisse Class Usage Examples

Méthodes publiques

Свойство 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
Résultat Vector3[]

colliderConvex public_oe property

public bool colliderConvex
Résultat bool

colliderIndicesBack public_oe property

public int[] colliderIndicesBack
Résultat int[]

colliderIndicesFwd public_oe property

public int[] colliderIndicesFwd
Résultat int[]

colliderSmoothSphereCollisions public_oe property

public bool colliderSmoothSphereCollisions
Résultat bool

colliderType public_oe property

Collider type
public ColliderType colliderType
Résultat 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
Résultat Vector3[]

complexGeometry public_oe property

Specifies if this texture has complex geometry
public bool complexGeometry
Résultat 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
Résultat bool

flipped public_oe property

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

indices public_oe property

Array of indices for sprite geometry.
public int[] indices
Résultat 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
Résultat 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
Résultat int

name public_oe property

Name
public string name
Résultat string

normals public_oe property

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

positions public_oe property

Array of positions for sprite geometry.
public Vector3[] positions
Résultat Vector3[]

regionX public_oe property

public int regionX
Résultat 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
Résultat string

tangents public_oe property

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

texelSize public_oe property

public Vector2 texelSize
Résultat Vector2

untrimmedBoundsData public_oe property

public Vector3[] untrimmedBoundsData
Résultat Vector3[]

uvs public_oe property

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