Class QueryNode
Abstract common base class for queries
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.Core
Syntax
[Serializable]
public abstract class QueryNode : MonoBehaviour, IQuery
Properties
id
Gets or sets the identifier.
Declaration
public string id { get; set; }
Property Value
Type | Description |
---|---|
String | The identifier. |
Implements
overrideQuery
Gets or sets a value indicating whether [override query].
Declaration
public bool overrideQuery { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
ResultObject
Gets or sets the result object.
Declaration
public abstract object ResultObject { get; set; }
Property Value
Type | Description |
---|---|
Object | The result object. |
Implements
Methods
ApplyOverride(QueryNode)
Applies the override.
Declaration
public abstract bool ApplyOverride(QueryNode overrideSource)
Parameters
Type | Name | Description |
---|---|---|
QueryNode | overrideSource | The override source. |
Returns
Type | Description |
---|---|
Boolean |
|
ExecuteQuery(QueryContext)
Executes the query.
Declaration
public abstract void ExecuteQuery(QueryContext context)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Implements
HasAnOverride()
Determines whether [has an override].
Declaration
public abstract bool HasAnOverride()
Returns
Type | Description |
---|---|
Boolean |
|
IsQueryValid(QueryContext)
Used by the UI to tag or filter queries that have issues.
Declaration
public virtual bool IsQueryValid(QueryContext context)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Returns
Type | Description |
---|---|
Boolean |
|
ResetOverride()
Resets the override.
Declaration
public abstract void ResetOverride()