Eonirr

Untitled

May 19th, 2025
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1.  
  2. //Ton ObjectField()
  3.  
  4. if (sprite != null)
  5.  
  6. Texture2D texture = script.mySprite.texture;
  7.  
  8. Texture2D texture = script.mySprite.texture;
  9.  
  10. Rect rect = GUILayoutUtility.GetRect(100, 100, GUILayout.ExpandWidth(false));
  11. EditorGUI.DrawPreviewTexture(rect, texture);
Advertisement
Add Comment
Please, Sign In to add comment