[FreeFunction(HasExplicitThis = true)] public void SendMessageUpwards(string methodName, [Internal.DefaultValue("null")] object value, [Internal.DefaultValue("SendMessageOptions.RequireReceiver")] SendMessageOptions options); // // 摘要: // Calls the method named methodName on every MonoBehaviour ...
publicvoidBroadcastMessage(stringmethodName, SendMessageOptions options);///摘要://Calls the method named methodName on every MonoBehaviour in this game object//or any of its children.///参数://methodName://Name of the method to call.///parameter://Optional parameter to pass to the method (...
[ExcludeFromDocs] public void SendMessageUpwards(string methodName, object value); // // 摘要: // ActivatesDeactivates the GameObject, depending on the given true or false/ value. // // 参数: // value: // Activate or deactivate the object, where true activates the GameObject and false /...
varroot=GameObject.Find("root");varcube=Resources.Load("Prefabs/PrefabCube")asGameObject;// add do attach parent, set same layer and fix localPosition/Scale/Rotation.// added child is cloned and returns child object.varclone=root.Add(cube);// choose sibling position and allow append multiple...