- Home /
This question was
closed Oct 23, 2014 at 11:14 PM by
robertbu for the following reason:
Duplicate Question
Question by
Villlgaer · Oct 23, 2014 at 11:13 PM ·
mousepositiongui.drawtexture
GUI.DrawTexture Error: BCE0023
Please Help
Script:
public var MouseTexture = Texture2D;
public var MousePosition = new Rect (Event.current.mousePosition.x/2, Event.current.mousePosition.y/2, 64, 64);
function Start () {
Screen.lockCursor = true;
Screen.lockCursor = false;
}
function OnGUI()
{
Graphics.DrawTexture(MousePosition, MouseTexture);
}
Error: "Assets/Mouse Lock.js(12,29): BCE0023: No appropriate version of 'UnityEngine.Graphics.DrawTexture' for the argument list '(UnityEngine.Rect, System.Type)' was found."
Comment
The first line should be:
public var $$anonymous$$ouseTexture : Texture2D;