Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class EditorDrawGizmoCube : MonoBehaviour
  4. {
  5.     [SerializeField] private Color color = Color.white;
  6.  
  7.     private void OnDrawGizmosSelected()
  8.     {
  9.         Gizmos.matrix = Matrix4x4.TRS(transform.position, transform.rotation, transform.lossyScale);
  10.         Gizmos.DrawCube(Vector3.zero, Vector3.one);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement