11-03-2019, 03:16 AM
(07-03-2019, 04:04 PM)josemendez Wrote: Have you made sure that:There was a compile error.
- There are no compile errors.
- The name of the script and the class are exactly the same.
Also, removing the (1) from the file name (if that's what you did) is not enough. There should only be one file with that name in the entire project. This is all standard Unity know-how.
New error happened.
NullReferenceException: Object reference not set to an instance of an object
ClothTornEvent.OnEnable () (at Assets/ClothTornEvent.cs:16)
NullReferenceException: Object reference not set to an instance of an object
ClothTornEvent.OnDisable () (at Assets/ClothTornEvent.cs:22)