Class Element.MonoBehaviour
Inheritance
System.Object
Element.MonoBehaviour
Namespace: Votanic
Assembly: Votanic.Core.dll
Syntax
public class MonoBehaviour
Methods
Contains(String, Boolean, Boolean)
Return true if the NAME parameter or monobehaviour name containes others.
當 NAME 參數或 MonoBehaviour 名稱包含對方時傳回 true。
GameObject g = vGameObjects.Find(Element.MonoBehaviour.Contains("NAME"));
Declaration
public static Predicate<MonoBehaviour> Contains(string name, bool singleSide = true, bool caseSensitive = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Checking name |
System.Boolean | singleSide | Only check element name contains NAME parameter |
System.Boolean | caseSensitive | Check with case sensitive |
Returns
Type | Description |
---|---|
System.Predicate<UnityEngine.MonoBehaviour> |
Equals(String, Boolean)
Return true if the monobehaviour name is equals to NAME parameter.
當 NAME 參數與 MonoBehaviour 名稱相同時傳回 true。
GameObject g = vGameObjects.Find(Element.MonoBehaviour.Equals("NAME"));
Declaration
public static Predicate<MonoBehaviour> Equals(string name, bool caseSensitive = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Checking name |
System.Boolean | caseSensitive | Check with case sensitive |
Returns
Type | Description |
---|---|
System.Predicate<UnityEngine.MonoBehaviour> |