Hi, i have a script for a 3D gui system and I am having issues with having OnMouseUpAsButton( Unity - Scripting API: MonoBehaviour.OnMouseUpAsButton() )
using UnityEngine;
using System.Collections;
public class highscore : MonoBehaviour {
public AudioClip button;
public GameObject text;
void OnMouseEnter()
{
audio.PlayOneShot(button);
text.renderer.material.color = Color.red;
}
void OnMouseExit()
{
text.renderer.material.color = Color.white;
}
void OnMouseUpAsButton()
{
print("OnMouseUpAsButton");
}
void OnMouseUp()
{
print("OnMouseUp");
}
}
That is my my code.Everything but the OnMouseUpAsButton works.
This refuses to work in javascript as well. Has anyone else encountered this issue?