Component.SendMessageUpwardsfunction SendMessageUpwards (methodName : String, value : object = null, options : SendMessageOptions = SendMessageOptions.RequireReceiver) : voidDescriptionCalls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour The receiving method can choose to ignore the argument by having zero arguments. if options is set to SendMessageOptions.RequireReceiver an error is printed when the message is not picked up by any component.
JavaScript
// Calls the function ApplyDamage with a value of 5 using UnityEngine; import UnityEngine |
