- Home /
Is it Posable to make you'r own Camera Component and not use the standard Unity Camera Component?
Is it Possable to make a Custom Camera? That does not use the camera component or nothing in that matter? I would like to know how to make my own camera component (if thats even possable) lol Thanks for any help!
I need a Camera that functions differently that the standard unityCamera Component. To make custom Projection $$anonymous$$atrixs plus more complicated stuff :D
Answer by Simon-Larsen · Jan 19, 2015 at 04:02 PM
Sure it is. You've got access to some drawing function listed here http://docs.unity3d.com/ScriptReference/Graphics.html I don't know how to make sure the performance is good, but there you have it.
public class MyCustomCamera : MonoBehaviour
{
public Texture aTexture;
void OnGUI() {
if (Event.current.type.Equals(EventType.Repaint))
Graphics.DrawTexture(new Rect(100, 100, 200, 200), aTexture);
}
}
Oh wow! this is exactly what i was searching for! Thanks :D
Your answer
Follow this Question
Related Questions
Make Camera High Definition? 1 Answer
Can I move a component from one GameObject to another in script? 1 Answer
Rotation help! 1 Answer
GUI controlling other game objects 0 Answers