GetPropertyOptionalBool
Searches for property and assigns it's value to given variable.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
GetPropertyOptionalBool(string, bool, BuildTargetGroup)
Searches for property and assigns it's value to given variable.
public static bool GetPropertyOptionalBool(string name, ref bool value, BuildTargetGroup target)
Parameters
Name of the property.
Variable, to which to store the value of the property, if set.
An optional build target group, to which the property applies.
Returns
Type | Description |
|---|---|
| bool | True if property was set and it's value assigned to given variable. |
Remarks
Property is not required to exist. If it doesn't exist, value variable will not be changed and this method will return false.
GetPropertyOptionalBool(string, bool)
Searches for property and assigns it's value to given variable.
public static bool GetPropertyOptionalBool(string name, ref bool value)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if property was set and it's value assigned to given variable. |
Remarks
Property is not required to exist. If it doesn't exist, value variable will not be changed and this method will return false.