Class EnvironmentDefinition
Class EnvironmentDefinition.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.Core
Syntax
[CreateAssetMenu(menuName = "Forma/Staging/Environment Definition", fileName = "Environment Definition", order = 10)]
public class EnvironmentDefinition : ScriptableObject
Fields
label
The label
Declaration
public string label
Field Value
Type | Description |
---|---|
String |
Properties
AllEnvironments
Gets all environments.
Declaration
public EnvironmentItem[] AllEnvironments { get; }
Property Value
Type | Description |
---|---|
EnvironmentItem[] | All environments. |
TotalCount
Gets the total count.
Declaration
public int TotalCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The total count. |
ValidCount
Gets the valid count.
Declaration
public int ValidCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The valid count. |
ValidEnvironments
Gets the valid environments.
Declaration
public EnvironmentItem[] ValidEnvironments { get; }
Property Value
Type | Description |
---|---|
EnvironmentItem[] | The valid environments. |
Methods
AddEnvironmentItem(EnvironmentItem)
Adds the environment item.
Declaration
public void AddEnvironmentItem(EnvironmentItem item)
Parameters
Type | Name | Description |
---|---|---|
EnvironmentItem | item | The item. |
EnvironmentForId(Int32)
Environments for identifier.
Declaration
public EnvironmentItem EnvironmentForId(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id | The identifier. |
Returns
Type | Description |
---|---|
EnvironmentItem | EnvironmentItem. |
EnvironmentReference(EnvironmentItem)
Environments the reference.
Declaration
public EnvironmentReference EnvironmentReference(EnvironmentItem environmentItem)
Parameters
Type | Name | Description |
---|---|---|
EnvironmentItem | environmentItem | The environment item. |
Returns
Type | Description |
---|---|
EnvironmentReference | EnvironmentReference. |