Base classe for all components wich use PropertyInterface.Tags.
Properties | |
TagID | TagID [get, set] |
The TagID used by the component. More... | |
Tag.ValueType | ValuesType [get, protected set] |
The Tag.ValueType of the component's values. More... | |
Tag | Tag [get] |
Get from the Tags list the Tag wich have the same TagID than this component. More... | |
Texture2D | Icon [get] |
Get the icon of the Tag More... | |
Public Member Functions | |
virtual void | UpdateValuesType () |
Update ValuesType. More... | |
virtual bool | CheckIntegrity () |
Check if the Tag, ValuesType are good. Update the Icon anyway. More... | |
bool | CheckValuesType (Tag tag) |
Check if the ValuesType is equals to the passed Tag.ValuesType. More... | |
Static Public Member Functions | |
static List< MonoBehaviourTagged > | GetMonoBehavioursTagged (bool includeInactive=false) |
Get all MonoBehaviourTagged in the current scene. More... | |
static List< MonoBehaviourTagged > | GetMonoBehavioursTagged (TagID tagID, bool includeInactive=false) |
Get all MonoBehaviourTagged in the current scene wich have the passed TagID. More... | |
static List< MonoBehaviourTagged > | GetMonoBehavioursTagged (GameObject target) |
Get all MonoBehaviourTagged in the target gameobject. More... | |
static List< MonoBehaviourTagged > | GetMonoBehavioursTagged (GameObject target, TagID tagID) |
Get all MonoBehaviourTagged in the target gameobject wich have the passed TagID. More... | |
static void | GetMonoBehavioursTagged (ref List< MonoBehaviourTagged > results, bool includeInactive=false) |
Get all MonoBehaviourTagged in the current scene. More... | |
static void | GetMonoBehavioursTagged (TagID tagID, ref List< MonoBehaviourTagged > results, bool includeInactive=false) |
Get all MonoBehaviourTagged in the current scene wich have the passed TagID. More... | |
static void | GetMonoBehavioursTagged (GameObject target, ref List< MonoBehaviourTagged > results) |
Get all MonoBehaviourTagged in the target gameobject. More... | |
static void | GetMonoBehavioursTagged (GameObject target, TagID tagID, ref List< MonoBehaviourTagged > results) |
Get all MonoBehaviourTagged in the target gameobject wich have the passed TagID. More... | |
static List< MonoBehaviourTagged > | GetMonoBehavioursTaggedInChildren (GameObject target, bool includeInactive=false) |
Get all MonoBehaviourTagged in the target gameobject and it's children. More... | |
static List< MonoBehaviourTagged > | GetMonoBehavioursTaggedInChildren (GameObject target, TagID tagID, bool includeInactive=false) |
Get all MonoBehaviourTagged with the passed TagID in the target gameobject and it's children. More... | |
static void | GetMonoBehavioursTaggedInChildren (GameObject target, ref List< MonoBehaviourTagged > results, bool includeInactive=false) |
Get all MonoBehaviourTagged in the target gameobject and it's children. More... | |
static void | GetMonoBehavioursTaggedInChildren (GameObject target, TagID tagID, ref List< MonoBehaviourTagged > results, bool includeInactive=false) |
Get all MonoBehaviourTagged with the passed TagID in the target gameobject and it's children. More... | |
static MonoBehaviourTagged | GetMonoBehaviourTagged (bool includeInactive=false) |
Get the First MonoBehaviourTagged in the current scene. More... | |
static MonoBehaviourTagged | GetMonoBehaviourTagged (TagID tagID, bool includeInactive=false) |
Get the first MonoBehaviourTagged in the current scene wich have the passed TagID. More... | |
static MonoBehaviourTagged | GetMonoBehaviourTagged (GameObject target) |
Get the first MonoBehaviourTagged in the target gameobject. . More... | |
static MonoBehaviourTagged | GetMonoBehaviourTagged (GameObject target, TagID tagID) |
Get the first MonoBehaviourTagged in the target gameobject wich have the passed TagID. More... | |
static void | GetMonoBehaviourTagged (ref MonoBehaviourTagged result, bool includeInactive=false) |
Get the first MonoBehaviourTagged in the current scene. More... | |
static void | GetMonoBehaviourTagged (TagID tagID, ref MonoBehaviourTagged result, bool includeInactive=false) |
Get the first MonoBehaviourTagged in the current scene wich have the passed TagID. More... | |
static void | GetMonoBehaviourTagged (GameObject target, ref MonoBehaviourTagged result) |
Get the first MonoBehaviourTagged in the target gameobject. More... | |
static void | GetMonoBehaviourTagged (GameObject target, TagID tagID, ref MonoBehaviourTagged result) |
Get the first MonoBehaviourTagged in the target gameobject wich have the passed TagID. More... | |
static MonoBehaviourTagged | GetMonoBehaviourTaggedInChildren (GameObject target, bool includeInactive=false) |
Get the first MonoBehaviourTagged in the target gameobject and it's children. More... | |
static MonoBehaviourTagged | GetMonoBehaviourTaggedInChildren (GameObject target, TagID tagID, bool includeInactive=false) |
Get the first MonoBehaviourTagged with the passed TagID in the target gameobject and it's children. More... | |
static void | GetMonoBehaviourTaggedInChildren (GameObject target, ref MonoBehaviourTagged result, bool includeInactive=false) |
Get the first MonoBehaviourTagged in the target gameobject and it's children. More... | |
static void | GetMonoBehaviourTaggedInChildren (GameObject target, TagID tagID, ref MonoBehaviourTagged result, bool includeInactive=false) |
Get the first MonoBehaviourTagged with the passed TagID in the target gameobject and it's children. More... | |
static bool | Exists (bool includeInactive=false) |
Return True if at least one MonoBehaviourTagged exists in the current scene or False otherwise. More... | |
static bool | Exists (TagID tagId, bool includeInactive=false) |
Return True if at least one MonoBehaviourTagged with passed TagID exists in the current scene or False otherwise. More... | |
static bool | Exists (GameObject target) |
Return True if at least one MonoBehaviourTagged exists in the target gameobject or False otherwise. More... | |
static bool | Exists (GameObject target, TagID tagId) |
Return True if at least one MonoBehaviourTagged with passed TagID exists in the target gameobject or False otherwise. More... | |
static bool | ExistsInChildren (GameObject target, bool includeInactive=false) |
Return True if at least one MonoBehaviourTagged exists in the target gameobject and its children or False otherwise. More... | |
static bool | ExistsInChildren (GameObject target, TagID tagId, bool includeInactive=false) |
Return True if at least one MonoBehaviourTagged with passed TagID exists in the target gameobject and its children or False otherwise. More... | |
Protected Attributes | |
TagID | _tagID = -1L |
Tag.ValueType | _valuesType = Tag.DEFAULT_VALUESTYPE |
Protected Member Functions | |
virtual void | OnTagIDChanged () |
Event triggered when TagID changed. More... | |
virtual void | OnValuesTypeChanged () |
Event triggered when ValuesType changed. More... | |
virtual void | WarningUpdate () |
Log a warning in the console to say the MonoBehaviourTagged have to be updated. More... | |
virtual void | WarningUpdate (Tag tag) |
Log a warning in the console to say the MonoBehaviourTagged have to be updated. More... | |
virtual void | WarningUnknownTag () |
Log a warning in the console to say the MonoBehaviourTagged have an Unknown Tag. More... | |
virtual void | WarningIconUpdated (Tag tag) |
Log a warning in the console to say the MonoBehaviourTagged icon have been automaticaly updated. More... | |
|
get |
Get the icon of the Tag
|
get |
|
getprotected set |
The Tag.ValueType of the component's values.
|
virtual |
Check if the Tag, ValuesType are good. Update the Icon anyway.
/!\ Will always return false while game play.
bool Nectunia.PropertyInterface.MonoBehaviourTagged.CheckValuesType | ( | Tag | tag | ) |
Check if the ValuesType is equals to the passed Tag.ValuesType.
/!\ Will always return false while game play.
tag | The concerned Tag. |
|
static |
Return True if at least one MonoBehaviourTagged exists in the current scene or False otherwise.
includeInactive | Include inactive GameObject. |
|
static |
Return True if at least one MonoBehaviourTagged exists in the target gameobject or False otherwise.
target | The target Gameobject in wich to search. |
|
static |
Return True if at least one MonoBehaviourTagged with passed TagID exists in the target gameobject or False otherwise.
target | The target Gameobject in wich to search. |
tagId | The TagID we are looking for. |
|
static |
Return True if at least one MonoBehaviourTagged with passed TagID exists in the current scene or False otherwise.
tagId | The TagID we are looking for. |
includeInactive | Include inactive GameObject. |
|
static |
Return True if at least one MonoBehaviourTagged exists in the target gameobject and its children or False otherwise.
target | The target Gameobject in wich to search. |
includeInactive | Include Inactive component. |
|
static |
Return True if at least one MonoBehaviourTagged with passed TagID exists in the target gameobject and its children or False otherwise.
target | The target Gameobject in wich to search. |
tagId | The TagID we are looking for. |
includeInactive | Include Inactive component. |
|
static |
Get all MonoBehaviourTagged in the current scene.
/!\ This function is very slow. It is not recommended to use this function every frame.
includeInactive | Include inactive GameObject. |
|
static |
Get all MonoBehaviourTagged in the target gameobject.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
|
static |
Get all MonoBehaviourTagged in the target gameobject.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
results | The list of all MonoBehaviourTagged component in the target gameobject. |
|
static |
Get all MonoBehaviourTagged in the target gameobject wich have the passed TagID.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
tagID | The tagID we are looking for. |
|
static |
Get all MonoBehaviourTagged in the target gameobject wich have the passed TagID.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
tagID | The tagID we are looking for. |
results | The list of all MonoBehaviourTagged in the target gameobject wich have the passed TagID. |
|
static |
Get all MonoBehaviourTagged in the current scene.
/!\ This function is very slow. It is not recommended to use this function every frame.
results | The list of all MonoBehaviourTagged component in the scene. |
includeInactive | Include inactive GameObject. |
|
static |
Get all MonoBehaviourTagged in the current scene wich have the passed TagID.
/!\ This function is very slow. It is not recommended to use this function every frame.
tagID | The tagID we are looking for. |
includeInactive | Include inactive GameObject. |
|
static |
Get all MonoBehaviourTagged in the current scene wich have the passed TagID.
/!\ This function is very slow. It is not recommended to use this function every frame.
tagID | The tagID we are looking for. |
results | The list of all MonoBehaviourTagged in the scene wich have the passed TagID. |
includeInactive | Include inactive GameObject. |
|
static |
Get all MonoBehaviourTagged in the target gameobject and it's children.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
includeInactive | Include inactive GameObject. |
|
static |
Get all MonoBehaviourTagged in the target gameobject and it's children.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
results | The list of all MonoBehaviourTagged component in the target gameobject. |
includeInactive | Include inactive GameObject. |
|
static |
Get all MonoBehaviourTagged with the passed TagID in the target gameobject and it's children.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
tagID | The tagID we are looking for. |
includeInactive | Include inactive GameObject. |
|
static |
Get all MonoBehaviourTagged with the passed TagID in the target gameobject and it's children.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
tagID | The tagID we are looking for. |
results | The list of all MonoBehaviourTagged component with the passed TagID in the target gameobject and it's children. |
includeInactive | Include inactive GameObject. |
|
static |
Get the First MonoBehaviourTagged in the current scene.
/!\ This function is very slow. It is not recommended to use this function every frame.
includeInactive | Include inactive GameObject. |
|
static |
Get the first MonoBehaviourTagged in the target gameobject. .
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
|
static |
Get the first MonoBehaviourTagged in the target gameobject.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
result | The first MonoBehaviourTagged component in the target gameobject. |
|
static |
Get the first MonoBehaviourTagged in the target gameobject wich have the passed TagID.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
tagID | The tagID we are looking for. |
|
static |
Get the first MonoBehaviourTagged in the target gameobject wich have the passed TagID.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
tagID | The tagID we are looking for. |
result | The first MonoBehaviourTagged in the target gameobject wich have the passed TagID. |
|
static |
Get the first MonoBehaviourTagged in the current scene.
/!\ This function is very slow. It is not recommended to use this function every frame.
result | The first MonoBehaviourTagged component in the scene. |
includeInactive | Include inactive GameObject. |
|
static |
Get the first MonoBehaviourTagged in the current scene wich have the passed TagID.
/!\ This function is very slow. It is not recommended to use this function every frame.
tagID | The tagID we are looking for. |
includeInactive | Include inactive GameObject. |
|
static |
Get the first MonoBehaviourTagged in the current scene wich have the passed TagID.
/!\ This function is very slow. It is not recommended to use this function every frame.
tagID | The tagID we are looking for. |
result | The first MonoBehaviourTagged in the scene wich have the passed TagID. |
includeInactive | Include inactive GameObject. |
|
static |
Get the first MonoBehaviourTagged in the target gameobject and it's children.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
includeInactive | Include inactive GameObject. |
|
static |
Get the first MonoBehaviourTagged in the target gameobject and it's children.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
result | The first MonoBehaviourTagged component in the target gameobject. |
includeInactive | Include inactive GameObject. |
|
static |
Get the first MonoBehaviourTagged with the passed TagID in the target gameobject and it's children.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
tagID | The tagID we are looking for. |
includeInactive | Include inactive GameObject. |
|
static |
Get the first MonoBehaviourTagged with the passed TagID in the target gameobject and it's children.
/!\ This function is very slow. It is not recommended to use this function every frame.
target | The target Gameobject in wich to search. |
tagID | The tagID we are looking for. |
result | The first MonoBehaviourTagged component with the passed TagID in the target gameobject and it's children. |
includeInactive | Include inactive GameObject. |
|
protectedvirtual |
Event triggered when TagID changed.
|
protectedvirtual |
Event triggered when ValuesType changed.
This happens when : -> TagID changed for a Tag with another ValuesType. -> The refered Tag have its ValuesType changed.
Reimplemented in Nectunia.PropertyInterface.PropertyTriggerHandler, and Nectunia.PropertyInterface.Property.
|
virtual |
Update ValuesType.
/!\ Do nothing while game play.
|
protectedvirtual |
Log a warning in the console to say the MonoBehaviourTagged icon have been automaticaly updated.
tag | The concerned Tag. |
|
protectedvirtual |
Log a warning in the console to say the MonoBehaviourTagged have an Unknown Tag.
|
protectedvirtual |
Log a warning in the console to say the MonoBehaviourTagged have to be updated.
/!\ Do nothing while game play.
|
protectedvirtual |
Log a warning in the console to say the MonoBehaviourTagged have to be updated.
tag | The concerned Tag. |
|
protected |
|
protected |