Class FeatureAvailability
Describes the availability of a single feature.
Namespace: UnityEngine.Industrial.Configuring.Providers
Syntax
[Serializable]
public class FeatureAvailability
Constructors
FeatureAvailability(FeatureAvailability.Status, String)
Initialization constructor.
Declaration
public FeatureAvailability(FeatureAvailability.Status status, string reason = null)
Parameters
Type | Name | Description |
---|---|---|
FeatureAvailability.Status | status | The status. |
String | reason | The reason. |
Properties
hasReason
Returns
true
if a reason is available, false
otherwise.
Declaration
public bool hasReason { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
reason
Optional reason to display to the user.
Declaration
public string reason { get; }
Property Value
Type | Description |
---|---|
String | The reason. |
Remarks
May be
null
if no reason is available.
status
Status of the availability.
Declaration
public FeatureAvailability.Status status { get; }
Property Value
Type | Description |
---|---|
FeatureAvailability.Status | The status. |
Methods
Clone()
Clones this instance.
Declaration
public FeatureAvailability Clone()
Returns
Type | Description |
---|---|
FeatureAvailability | FeatureAvailability. |