예제 #1
0
 static public void DrawTexture(Vector3 position, float size, Texture2D texture)
 {
     GizmosExtensions.DrawTexture(
         position,
         new Vector2(size, texture.GetAspect() * size),
         texture
         );
 }
예제 #2
0
 static public void DrawSprite(Vector3 center, Vector2 size, Sprite sprite)
 {
     GizmosExtensions.DrawTexture(center, size, sprite.Sideload());
 }