Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GUI.matrix

static var matrix: Matrix4x4;
static Matrix4x4 matrix;
static matrix as Matrix4x4

Description

The GUI transform matrix.

	print (GUI.matrix);
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        print(GUI.matrix);
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		print(GUI.matrix)