Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


modelview

Gets or sets the modelview matrix.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Matrix4x4 modelview { get; set; }

Remarks

The getter returns the product of the model and view matrices. The setter assigns an identity to the model matrix and the provided matrix to the view matrix.
Changing the model, view or projection matrices overrides the current rendering matrices. It is good practice to save and restore these matrices using GL.PushMatrix and GL.PopMatrix.