Various fixes

This commit is contained in:
Wojtek Figat
2024-02-16 12:29:59 +01:00
parent c7a449fe1c
commit f0f8da3c09
4 changed files with 42 additions and 4 deletions

View File

@@ -12,6 +12,13 @@
template<typename T>
API_STRUCT(NoDefault, Template, MarshalAs=JsonAsset*) struct JsonAssetReference : AssetReference<JsonAsset>
{
JsonAssetReference() = default;
JsonAssetReference(JsonAsset* asset)
{
OnSet(asset);
}
/// <summary>
/// Gets the deserialized native object instance of the given type. Returns null if asset is not loaded or loaded object has different type.
/// </summary>