Sorry for not posting any code (I’m not at my computer), but I currently have a script which takes a 3D arrow model and makes it always point towards a moving spaceship, upon the spaceship’s destruction, a SpaceshipSpawner object will spawn a new spaceship and the arrow will correctly point towards the new spaceship.
Yes, everything works, however, the Unity error is still throwing up missing reference errors. I want to get rid of the editor issues since I’m worried that they might cause issues down the line.
Is there a simple way for me to make my arrow point towards a newly-instantiated spaceship without the editor yelling at me?
My current attempt is assigning the instantiation as a variable, then referencing that variable in the arrow script and passing the position of the the instantiation variable to my LookAt() function.
I’m still quite new to Unity and C# so I may be missing something obvious but I’d appreciate the help.