TryGetProperty
Retrieves the value of a specified light property.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.AssetImporters
- Assembly: UnityEditor
TryGetProperty(string, float)
Retrieves the value of a specified light property.
public bool TryGetProperty(string propertyName, out float value)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the property exists on the light. Returns false otherwise. |
TryGetProperty(string, Vector4)
Retrieves the value of a specified light property.
public bool TryGetProperty(string propertyName, out Vector4 value)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the property exists on the light. Returns false otherwise. |
TryGetProperty(string, string)
Retrieves the value of a specified light property.
public bool TryGetProperty(string propertyName, out string value)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the property exists on the light. Returns false otherwise. |
TryGetProperty(string, int)
Retrieves the value of a specified light property.
public bool TryGetProperty(string propertyName, out int value)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the property exists on the light. Returns false otherwise. |