Moonlit-Games / Ultimate-Water-System

15 stars 7 forks source link

MissingReferenceException: The object of type 'Water' has been destroyed but you are trying to access it #35

Closed stevenwanhk closed 6 years ago

stevenwanhk commented 6 years ago

UltimateWater.WaterSample.GetAndReset (at Assets/Ultimate Water System/SCript/Sectra/Samplng/WaterSample.cs:153)

Possible reason but not tested: I have a camera with Water Camera attached and the camera is DontDestroyOnLoad. When I change from one scene with Water to another scene without Water, this error keeps coming out.

MCPGNZ commented 6 years ago

Will look into it!

MCPGNZ commented 6 years ago

I've fixed it, it will be available in the new release (which will be send to Asset Store by the end of this week)