Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Error Creating Texture and Sprite

$
0
0
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?

Code (CSharp):
  1. using UnityEngine;
  2. using UnityEditor;
  3. using System.Collections;
  4.  
  5. public class CreateSprite : MonoBehaviour {
  6.  
  7.     [MenuItem("GameObject/2D...
Error Creating Texture and Sprite

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>