Data around how a mesh is modified, such as by blendshapes
More...
|
| MeshTarget () |
| Basic constructor
|
|
| MeshTarget (Vector3[] deltas, Vector3[] norms, Vector3[] tans) |
| Constructor for setting up a mesh target from given data More...
|
|
| MeshTarget (PrimitiveMeshTarget primitiveMeshTarget) |
| Constructor for setting up a mesh target marshalled from a PrimitiveMeshTarget More...
|
|
PrimitiveMeshTarget | ToPrimitiveMeshTarget () |
| Convert this mesh target into a PrimitiveMeshTarget
|
|
int | InjectBlendshape (Mesh realMesh, string name, string batch="", bool driveVertices=true, bool driveNormals=true, bool driveTangents=false, bool workAroundUnityBug=true) |
| Applies a morphable's MeshTarget data into a blendshape. This call is an internal call that is handled by MorphableItem typically. More...
|
|
int | InjectBlendshape (MeshItem meshItem, string batch="", bool driveVertices=true, bool driveNormals=true, bool driveTangents=false) |
|
|
string | morphableId |
| Id of the morphable that is driving this target
|
|
string | meshId |
| Id of the mesh that is being driven
|
|
Vector3[] | vertices |
| Modified vertices for this mesh target
|
|
Vector3[] | normals |
| Modifed normals for this mesh target
|
|
Vector3[] | tangents |
| Modified tangents for this mesh target
|
|
Data around how a mesh is modified, such as by blendshapes
◆ MeshTarget() [1/2]
Astra.Asset.MeshTarget.MeshTarget |
( |
Vector3[] |
deltas, |
|
|
Vector3[] |
norms, |
|
|
Vector3[] |
tans |
|
) |
| |
|
inline |
Constructor for setting up a mesh target from given data
- Parameters
-
deltas | Modified delta values |
norms | Modified normal values |
tans | Modified tangent values |
◆ MeshTarget() [2/2]
Astra.Asset.MeshTarget.MeshTarget |
( |
PrimitiveMeshTarget |
primitiveMeshTarget | ) |
|
|
inline |
Constructor for setting up a mesh target marshalled from a PrimitiveMeshTarget
- Parameters
-
primitiveMeshTarget | PrimitiveMeshTarget to pull values from |
◆ InjectBlendshape()
int Astra.Asset.MeshTarget.InjectBlendshape |
( |
Mesh |
realMesh, |
|
|
string |
name, |
|
|
string |
batch = "" , |
|
|
bool |
driveVertices = true , |
|
|
bool |
driveNormals = true , |
|
|
bool |
driveTangents = false , |
|
|
bool |
workAroundUnityBug = true |
|
) |
| |
|
inline |
Applies a morphable's MeshTarget data into a blendshape. This call is an internal call that is handled by MorphableItem typically.
- Parameters
-
realMesh | The Unity mesh the blendshape is being installed on |
name | An Astra GUID for the morphable |
batch | |
driveVertices | If true the blendshape vertices will move |
driveNormals | If true the blendshape normals will move |
driveTangents | If true the blendshape tangents will move (avoid this typically) |
workAroundUnityBug | If true (default) works around an occasional bug in unity's blendshape lookup |
- Returns
- The blendshape index that was used, else -1 for error
summary>Creates a blendshape and injects it into the mesh for immediate use
returns>the slot of the blendshape throws>
The documentation for this class was generated from the following file:
- Assets/Astra/Asset/Mesh/MeshTarget.cs