- Home /
Question by
Robert Ahearne · May 16, 2016 at 01:47 PM ·
canvascollision detectiontriggersenable and disable script
Enable panel in Canvas when Trigger Collids
Trying to enable a panel in the canvas called MessageBox when the Trigger Collids with a ameObject, can someone help me. Thanks in advance
var CanvasObject : GameObject;
function OnTriggerEnter (info:Collider)
{
var message = CanvasObject.Find("MessageBox");
message().enabled = true;
}
Comment