Struct JsonAssetReference
Json asset reference utility. References resource with a typed data type.
Inherited Members
JsonAssetReference
JsonAssetReference
Assembly: FlaxEngine.dll
File: Engine/Content/JsonAssetReference.h
Syntax
public struct JsonAssetReference<T> : public AssetReference
Type Parameters
T
Type of the asset instance type. |
Constructors
JsonAssetReference()
Declaration
public JsonAssetReference() = default
JsonAssetReference(JsonAsset* asset)
operator JsonAsset* ()
Declaration
public operator JsonAsset* () const
Methods
GetInstance()
Gets the deserialized native object instance of the given type. Returns null if asset is not loaded or loaded object has different type.
Declaration
public T* GetInstance() const
Returns
T
The asset instance object or null. |
operator=(JsonAsset* asset)
Declaration
public JsonAssetReference operator=(JsonAsset* asset) noexcept
Parameters
JsonAsset
asset
|
Returns
JsonAssetReference
|