Astra Unity 2.6.6
Astra Unity Plugin
Astra.Asset.MeshLoadJob.MeshLoadResult Class Reference

Results from loading a mesh More...

Classes

struct  SlotMapper
 

Public Member Functions

void LinkWithRig (RigItem rigItem, bool zeroOut=true)
 This call will bind the mesh to the rig meaning the skinning solution will be converted from raw values to the actual bones More...
 
void LinkWithMaterials (CompoundItem ci, bool showUponCompletion=false)
 Associate the compound item's materials with this mesh This makes the assumption that your material item comps already exist and your UnityMaterials are built on them More...
 

Public Attributes

GameObject gameObject
 This is the object we're creating or updating. Optional to set this, if one is not set, one will be created on Load.
 
MeshItem meshItem
 The loaded MeshItem
 

Detailed Description

Results from loading a mesh

Member Function Documentation

◆ LinkWithMaterials()

void Astra.Asset.MeshLoadJob.MeshLoadResult.LinkWithMaterials ( CompoundItem  ci,
bool  showUponCompletion = false 
)
inline

Associate the compound item's materials with this mesh This makes the assumption that your material item comps already exist and your UnityMaterials are built on them

The result of this function is that your materials will be bound to the renderer component

Parameters
ciCompoundItem to link with

◆ LinkWithRig()

void Astra.Asset.MeshLoadJob.MeshLoadResult.LinkWithRig ( RigItem  rigItem,
bool  zeroOut = true 
)
inline

This call will bind the mesh to the rig meaning the skinning solution will be converted from raw values to the actual bones

During things like avatar loading we can be more efficient by only loading 1 rig item, then linking it here

Parameters
rigItem
zeroOut

The documentation for this class was generated from the following file: