Astra Unity 2.6.6
Astra Unity Plugin
Astra.Asset.MaterialLoadJob.MaterialLoadResult Class Reference

Results from loading a material More...

Public Member Functions

void AttachMaterial (ItemBase ib)
 Creates a MaterialItem and attaches it to the gameobject from the passed in ItemBase. More...
 

Public Attributes

Material unityMaterial
 The UnityMaterial which is wrapped by an attached MaterialItem. It is created as part of the loading process
 
MaterialItem materialItem
 The created MaterialItem (only applicable after AttachMaterial is called)
 

Detailed Description

Results from loading a material

Member Function Documentation

◆ AttachMaterial()

void Astra.Asset.MaterialLoadJob.MaterialLoadResult.AttachMaterial ( ItemBase  ib)
inline

Creates a MaterialItem and attaches it to the gameobject from the passed in ItemBase.

Note: this is automatically done for you if you specified a compoundItem on this class object and then fire Load

Parameters
ibItem to attach this material to

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