Revert "_assetref setunsafe (unstable buggy)"

This reverts commit 89d359e0078bbec8c84cad07950ad5df6df46fc3.
This commit is contained in:
2024-03-11 20:15:55 +02:00
parent 22132d550c
commit 8a41e04641
2 changed files with 4 additions and 62 deletions

View File

@@ -217,17 +217,6 @@ public:
{
OnSet(asset);
}
/// <summary>
/// Sets the asset reference without binding the events.
/// This should only be used cautiously in cases where the reference needs to be held for a short time (for example in while marshalling managed types).
/// </summary>
/// <param name="asset">The asset.</param>
void SetUnsafe(T* asset)
{
ASSERT(_asset == nullptr || asset == nullptr);
_asset = asset;
}
};
template<typename T>