Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


zero

Returns a matrix with all elements set to zero (Read Only).
Read time 1 minuteLast updated 5 days ago

Definition

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

Remarks

using UnityEngine;public class ExampleScript : MonoBehaviour{ void Start() { // will print: // 0.00000 0.00000 0.00000 0.00000 // 0.00000 0.00000 0.00000 0.00000 // 0.00000 0.00000 0.00000 0.00000 // 0.00000 0.00000 0.00000 0.00000 var matrix = Matrix4x4.zero; Debug.Log(matrix); }}
Additional Resources: Matrix4x4.identity property.