Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

toggletrigger has no receiver NEED HELP!!!!

$
0
0
I am working from the Unity book and am in chapter 5 and I have been dealing with this problem for a week now and have had no luck with solving it SendMessage ToggleTrigger has no receiver! UnityEngine.GameObject:SendMessage(String) SendMessageOnTrigger:OnTriggerEnter(Collider) (at Assets/Standard Assets/Character Controllers/Sources/Scripts/My scripts/SendMessageOnTrigger.js:7) as far as i know, i have placed everything where it belongs and I have the script typed up correctly var sendToObject : GameObject; var correctObject: GameObject; //this is the only object we allow to trigger the event function OnTriggerEnter (object : Collider) { // call the function on the specified object if(object == correctObject.collider) sendToObject.SendMessage("ToggleTrigger "); print (object.name); // this is the name of the object triggered the event } function OnTriggerExit (object : Collider) { // call the function on the specified object if(object == correctObject.collider) sendToObject.SendMessage("ToggleTrigger "); print (object.name); // this is the name of the object triggered the event } I'm not entirely sure what causes this and it seems that nobody else can tell me what does either so I am at a standstill for the time being. I have heard of reimporting everything fixing everything but I tried and it didn't work so now I'm trying to see If anyone can tell me if there is a way to fix this because I don't want to have to start this over again. Any help at all would be GREATLY appreciated

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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