Astra Unity 2.6.6
Astra Unity Plugin
Astra.Asset.AvatarLoadJob Class Reference

Job used when we are loading a avatar More...

Inheritance diagram for Astra.Asset.AvatarLoadJob:

Classes

class  AvatarLoadOptions
 Details of what to pass in to load a avatar More...
 

Public Member Functions

override AvatarItem GetResult ()
 When the job is complete this function can be called by the developer to access the result data set which can be of any type (defined as T1). This needs to be defined if your derived class as an override. More...
 
override Loader.LoadError GetError ()
 When the job is complete this function can be called by the developer to access the error data set which can be of any type (defined as T2). This needs to be defined if your derived class as an override. More...
 
delegate void LoadDone (bool success)
 
- Public Member Functions inherited from Astra.ApiJobWithResult< AvatarItem, Loader.LoadError >
IEnumerator AsCoroutine (Action< float > progress=null, Action< T1 > onComplete=null, Action< T2 > onFailed=null)
 Wraps a job to be used within a coroutine More...
 

Protected Member Functions

void RunLoadDone ()
 
void OnPostAvatarRecipe (int parentJobId=Job.kNoParentJobId)
 
void PostFigureSchematic (Job job)
 
void PostSchematicLoads (Job job)
 
bool? PhaseMeshConversion (Job job)
 
void BuildAvatarItem ()
 

Protected Attributes

FigureLoadJob.FigureLoadResult figureLoadResult = null
 

Events

LoadDone OnLoadDone
 

Detailed Description

Job used when we are loading a avatar

Member Function Documentation

◆ GetError()

override Loader.LoadError Astra.Asset.AvatarLoadJob.GetError ( )
inlinevirtual

When the job is complete this function can be called by the developer to access the error data set which can be of any type (defined as T2). This needs to be defined if your derived class as an override.

Returns
Yields the error result data

Implements Astra.ApiJobWithResult< AvatarItem, Loader.LoadError >.

◆ GetResult()

override AvatarItem Astra.Asset.AvatarLoadJob.GetResult ( )
inlinevirtual

When the job is complete this function can be called by the developer to access the result data set which can be of any type (defined as T1). This needs to be defined if your derived class as an override.

Returns
Yields the success result data

Implements Astra.ApiJobWithResult< AvatarItem, Loader.LoadError >.

◆ PhaseMeshConversion()

bool? Astra.Asset.AvatarLoadJob.PhaseMeshConversion ( Job  job)
inlineprotected

Analyze the state data and do any prep work off main thread

This handles an optimization that reduces the amount of time spent on the main thread basically it builds up an array for the mesh data w/o using a gameobject we can also do this in parallel which speeds up overall load time for a single asset


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