Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

The 'camera specific' MonoBehaviour methods (OnPreRender, etc) are a little clunky, can change it?

$
0
0
Edit: I screwed up the thread title! Oops. It should read 'can we change it?'

This might not be the best example of why it is so clunky, but hear me out!

Let's say I want an object in my scene to always face the camera - like a Billboard. I can create a script that will align an object to the camera. I would attach this script to the camera, and set the target object reference to the object I want aligned to the camera. So something like

Code (CSharp):
  1. public...
The 'camera specific' MonoBehaviour methods (OnPreRender, etc) are a little clunky, can change it?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>