Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Ton ObjectField()
- if (sprite != null)
- Texture2D texture = script.mySprite.texture;
- Texture2D texture = script.mySprite.texture;
- Rect rect = GUILayoutUtility.GetRect(100, 100, GUILayout.ExpandWidth(false));
- EditorGUI.DrawPreviewTexture(rect, texture);
Advertisement
Add Comment
Please, Sign In to add comment