Hello all, I have a question regarding Resources.Load with prefabs. I have a prefab that has a particle system on it, and underneath there is a point light. This prefab also has an animator where I am controlling that point light (by changing the light’s intensity from 0 to 8 for a create animation, and 8 to 0 for a destroy animation).
I load this prefab using Resources.Load, however I immediately get the following warnings from Unity when I try to instantiate it:
- The referenced script on this Behaviour (Game Object ‘’) is missing!
- The referenced script on this Behaviour (Game Object ‘Point Light’) is missing! (I get this twice)
I can’t seem to understand exactly what is going on. Is this an issue with loading the prefab? Or with instantiating the asset. I will note that while I do get these warnings, everything functions without issue.
My thoughts were that perhaps the animation is trying to access the Point Light before it is created?