NikosAssets.Instantiation 0.1.0
Loading...
Searching...
No Matches
NikosAssets.Instantiation.InstantiationObjectData Class Reference

A specific data class for any Unity Object, especially useful for nonGameObjects like Materials or AudioClips. More...

Additional Inherited Members

Public Member Functions inherited from NikosAssets.Instantiation.BaseInstantiationData< TObject >
void Dispose ()
async Task< TObject > CreateInstanceAsync (Transform parent=null, bool worldPositionStays=false)
async Task< TObject > CreateInstanceAsync (Vector3 position, Quaternion rotation, Transform parent=null)
async Task< TObject > LoadAssetReferenceAsync ()
 Loads the Object to clone and caches it in the CachedAssetReference
async Task UnloadAssetReference ()
 Unloads the CachedAssetReference when using addressables. For convenience you can also just call Dispose().
Public Attributes inherited from NikosAssets.Instantiation.BaseInstantiationData< TObject >
bool loadAssetReference
 set to true if you want to assign an assetReference and load it
AssetReference assetReference
TObject objectReference
Protected Attributes inherited from NikosAssets.Instantiation.BaseInstantiationData< TObject >
CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource()
Properties inherited from NikosAssets.Instantiation.BaseInstantiationData< TObject >
TObject CachedAssetReference [get, set]
 Either set a cached asset yourself or call and await LoadAssetReferenceAsync() to initialize this property. By default, this cached asset reference will be used for Instantiation and it is even recommended you use it yourself to avoid overhead.

Detailed Description

A specific data class for any Unity Object, especially useful for nonGameObjects like Materials or AudioClips.


The documentation for this class was generated from the following file:
  • InstantiationObjectData.cs