Hide menu
cadex.Unity_ObjectFactory Class Reference

Creates GameObject from ModelData_Model. More...

Public Member Functions

delegate void Callback (GameObject theGameObject)
 Delegate used by the CreateAsync function. More...
 
 Unity_ObjectFactory ()
 Constructor. More...
 
GameObject Create (ModelData_Model theModel, string theName)
 Creates GameObject from ModelData_Model in the current scene with a specified name. More...
 
void CreateAsync (ModelData_Model theModel, string theName, Callback theCallback=null)
 Asynchronously creates GameObject from ModelData_Model in the current scene with a specified name. More...
 
void SetParameters (Unity_ObjectFactoryParameters theParam)
 Sets parameters. More...
 
Unity_ObjectFactoryParameters Parameters ()
 Returns parameters. More...
 
void SetProgressStatus (Base_ProgressStatus theStatus)
 Sets progress status. More...
 
Base_ProgressStatus ProgressStatus ()
 Returns progress status. More...
 
void SetProgressStatusObserver (Base_ProgressStatus.Observer theObserver)
 Sets progress status observer. More...
 

Detailed Description

Creates GameObject from ModelData_Model.

Refer to Integration with Unity.

Constructor & Destructor Documentation

◆ Unity_ObjectFactory()

cadex.Unity_ObjectFactory.Unity_ObjectFactory ( )
inline

Constructor.

Exceptions
LicenseManager_LicenseErrorif no Unity add-on license was activated.

Member Function Documentation

◆ Callback()

delegate void cadex.Unity_ObjectFactory.Callback ( GameObject  theGameObject)

Delegate used by the CreateAsync function.

◆ Create()

GameObject cadex.Unity_ObjectFactory.Create ( ModelData_Model  theModel,
string  theName 
)
inline

Creates GameObject from ModelData_Model in the current scene with a specified name.

Returns just created GameObject.

◆ CreateAsync()

void cadex.Unity_ObjectFactory.CreateAsync ( ModelData_Model  theModel,
string  theName,
Callback  theCallback = null 
)
inline

Asynchronously creates GameObject from ModelData_Model in the current scene with a specified name.

Use this function if you'd like the main thread of Unity to be blocked for as little time as possible during the conversion. Once the conversion is finished the callback is invoked and the resulting GameObject is passed to it.

◆ Parameters()

Unity_ObjectFactoryParameters cadex.Unity_ObjectFactory.Parameters ( )
inline

Returns parameters.

◆ ProgressStatus()

Base_ProgressStatus cadex.Unity_ObjectFactory.ProgressStatus ( )
inline

Returns progress status.

◆ SetParameters()

void cadex.Unity_ObjectFactory.SetParameters ( Unity_ObjectFactoryParameters  theParam)
inline

Sets parameters.

◆ SetProgressStatus()

void cadex.Unity_ObjectFactory.SetProgressStatus ( Base_ProgressStatus  theStatus)
inline

Sets progress status.

◆ SetProgressStatusObserver()

void cadex.Unity_ObjectFactory.SetProgressStatusObserver ( Base_ProgressStatus.Observer  theObserver)
inline

Sets progress status observer.