I created this very basic script so I could easily add Rectangles to my game, but for some reason when I run the game the rectangles give me the following errors:
rd->texture.IsValid()
And
rd->texture.IsValid()
UnityEditor.DockArea:OnGUI()
The rectangles display and work fine during gameplay, so why am I getting these errors?
Error Creating Texture and Sprite
rd->texture.IsValid()
And
rd->texture.IsValid()
UnityEditor.DockArea:OnGUI()
The rectangles display and work fine during gameplay, so why am I getting these errors?
Code (CSharp):
- using UnityEngine;
- using UnityEditor;
- using System.Collections;
- [MenuItem("GameObject/2D...