UnityEngine.Component.BroadcastMessage C# (CSharp) Method

BroadcastMessage() public method

public BroadcastMessage ( string methodName ) : void
methodName string
return void
		public void BroadcastMessage(string methodName){}
		public void BroadcastMessage(string methodName, SendMessageOptions options){}

Same methods

Component::BroadcastMessage ( string methodName, SendMessageOptions options ) : void
Component::BroadcastMessage ( string methodName, System parameter ) : void
Component::BroadcastMessage ( string methodName, System parameter, SendMessageOptions options ) : void

Usage Example

Example #1
0
 static public int BroadcastMessage(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 4)
         {
             UnityEngine.Component self = (UnityEngine.Component)checkSelf(l);
             System.String         a1;
             checkType(l, 2, out a1);
             System.Object a2;
             checkType(l, 3, out a2);
             UnityEngine.SendMessageOptions a3;
             checkEnum(l, 4, out a3);
             self.BroadcastMessage(a1, a2, a3);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, argc, 2, typeof(string), typeof(System.Object)))
         {
             UnityEngine.Component self = (UnityEngine.Component)checkSelf(l);
             System.String         a1;
             checkType(l, 2, out a1);
             System.Object a2;
             checkType(l, 3, out a2);
             self.BroadcastMessage(a1, a2);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, argc, 2, typeof(string), typeof(UnityEngine.SendMessageOptions)))
         {
             UnityEngine.Component self = (UnityEngine.Component)checkSelf(l);
             System.String         a1;
             checkType(l, 2, out a1);
             UnityEngine.SendMessageOptions a2;
             checkEnum(l, 3, out a2);
             self.BroadcastMessage(a1, a2);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 2)
         {
             UnityEngine.Component self = (UnityEngine.Component)checkSelf(l);
             System.String         a1;
             checkType(l, 2, out a1);
             self.BroadcastMessage(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of UnityEngine.Component::BroadcastMessage