Add support for editing texture group in editor (without reimporting)

This commit is contained in:
Wojtek Figat
2021-06-18 10:49:04 +02:00
parent 2d88ed17d4
commit 3b31fd7c71
16 changed files with 141 additions and 91 deletions

View File

@@ -82,10 +82,7 @@ public:
/// <summary>
/// Gets asset's reference count. Asset will be automatically unloaded when this reaches zero.
/// </summary>
API_PROPERTY() int32 GetReferencesCount() const
{
return (int32)Platform::AtomicRead(const_cast<int64 volatile*>(&_refCount));
}
API_PROPERTY() int32 GetReferencesCount() const;
/// <summary>
/// Adds reference to that asset.
@@ -213,9 +210,7 @@ protected:
/// <summary>
/// Releases the storage file/container handle to prevent issues when renaming or moving the asset.
/// </summary>
virtual void releaseStorage()
{
}
virtual void releaseStorage();
/// <summary>
/// Loads asset
@@ -231,10 +226,7 @@ protected:
protected:
virtual bool IsInternalType() const
{
return false;
}
virtual bool IsInternalType() const;
bool onLoad(LoadAssetTask* task);
void onLoaded();