Add support for editing texture group in editor (without reimporting)
This commit is contained in:
@@ -111,6 +111,11 @@ Asset::Asset(const SpawnParams& params, const AssetInfo* info)
|
||||
{
|
||||
}
|
||||
|
||||
int32 Asset::GetReferencesCount() const
|
||||
{
|
||||
return (int32)Platform::AtomicRead(const_cast<int64 volatile*>(&_refCount));
|
||||
}
|
||||
|
||||
String Asset::ToString() const
|
||||
{
|
||||
return String::Format(TEXT("{0}, {1}, {2}"), GetTypeName(), GetID(), GetPath());
|
||||
@@ -435,6 +440,15 @@ void Asset::startLoading()
|
||||
_loadingTask->Start();
|
||||
}
|
||||
|
||||
void Asset::releaseStorage()
|
||||
{
|
||||
}
|
||||
|
||||
bool Asset::IsInternalType() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Asset::onLoad(LoadAssetTask* task)
|
||||
{
|
||||
// It may fail when task is cancelled and new one is created later (don't crash but just end with an error)
|
||||
|
||||
Reference in New Issue
Block a user