You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 20:20:06 +00:00
3.0.0-preview.28
# [3.0.0-preview.28](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.27...v3.0.0-preview.28) (2020-09-01)
### Features
* support AnimatableProperty for multiple materials ([062d988](062d9887fb))
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Coffee.UIExtensions
|
||||
}
|
||||
|
||||
private Camera _camera;
|
||||
private int _refCount;
|
||||
// private int _refCount;
|
||||
|
||||
private static BakingCamera Create()
|
||||
{
|
||||
@@ -70,26 +70,6 @@ namespace Coffee.UIExtensions
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
|
||||
public static void Register()
|
||||
{
|
||||
Instance._refCount++;
|
||||
}
|
||||
|
||||
public static void Unregister()
|
||||
{
|
||||
if (s_Instance == null) return;
|
||||
|
||||
Instance._refCount--;
|
||||
if (0 < Instance._refCount) return;
|
||||
|
||||
if (Application.isPlaying)
|
||||
Destroy(Instance.gameObject);
|
||||
else
|
||||
DestroyImmediate(Instance.gameObject);
|
||||
|
||||
s_Instance = null;
|
||||
}
|
||||
|
||||
public static Camera GetCamera(Canvas canvas)
|
||||
{
|
||||
if (!canvas) return Camera.main;
|
||||
|
||||
Reference in New Issue
Block a user