Add AutoReleaseGameObjectHandle initialize parameters

支持自动释放游戏对象句柄的功能。
This commit is contained in:
hevinci
2022-06-23 16:02:53 +08:00
parent 60f6483a86
commit 32148821a1
4 changed files with 108 additions and 10 deletions
@@ -93,6 +93,20 @@ namespace YooAsset
}
}
/// <summary>
/// 句柄是否有效
/// </summary>
public bool IsValidNoWarning
{
get
{
if (Provider != null && Provider.IsDestroyed == false)
return true;
else
return false;
}
}
/// <summary>
/// 释放句柄
/// </summary>