kode80CloudsUnity3D icon indicating copy to clipboard operation
kode80CloudsUnity3D copied to clipboard

how can i enable/disable clouds for multiple shots in one scene

Open nbac opened this issue 7 years ago • 0 comments

i do have multiple cameras set up. there are multiple clouds setups for those different cameras. if i enable disable them maunally everything works fine but on runtime per script it is not working. unity says

Destroying GameObjects immediately is not permitted during physics trigger/contact, animation event callbacks or OnValidate. You must use Destroy instead. UnityEngine.Object:DestroyImmediate(Object) kode80.Clouds.kode80Clouds:DestroyFullscreenQuad() (at Assets/kode80/Clouds/Scripts/kode80Clouds.cs:479) kode80.Clouds.kode80Clouds:OnDisable() (at Assets/kode80/Clouds/Scripts/kode80Clouds.cs:211) UnityEngine.GameObject:SetActive(Boolean)

nbac avatar Jun 27 '17 16:06 nbac