I am making a Doom Clone (billboarded objects and enemies). I’m doing this by simply rotating the objects towards the main camera. I don’t like this solution, but it seems to be the only one available… I need two behaviors, one for editor time and one for run time, pointing the sprite at the scene camera and player camera respectively.
I have a line of code that switches between cameras (using Sceneview.lastActiveSceneView), but I’m not sure of a good way to change between them. I tried assign a bool which defaults to false and flipping it to true at Start(), but of course Start() gets called at editor time to. So I’m kind of stuck and would be very happy for any thoughts (especially if they present a way to switch modes at run time)
Thanks!