Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

ICustomStyle.TryGetValue

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public Boolean TryGetValue(UnityEngine.UIElements.CustomStyleProperty<System.Single> property, out Single value);

Returns

Boolean True if the property is found, false if not.

Description

Gets the value associated with the specified CustomStyleProperty_1.


Declaration

public Boolean TryGetValue(UnityEngine.UIElements.CustomStyleProperty<System.Int32> property, out Int32 value);

Returns

Boolean True if the property is found, false if not.

Description

Gets the value associated with the specified CustomStyleProperty_1.


Declaration

public Boolean TryGetValue(UnityEngine.UIElements.CustomStyleProperty<System.Boolean> property, out Boolean value);

Returns

Boolean True if the property is found, false if not.

Description

Gets the value associated with the specified CustomStyleProperty_1.


Declaration

public Boolean TryGetValue(UnityEngine.UIElements.CustomStyleProperty<UnityEngine.Color> property, out Color value);

Returns

Boolean True if the property is found, false if not.

Description

Gets the value associated with the specified CustomStyleProperty_1.


Declaration

public Boolean TryGetValue(UnityEngine.UIElements.CustomStyleProperty<UnityEngine.Texture2D> property, out Texture2D value);

Returns

Boolean True if the property is found, false if not.

Description

Gets the value associated with the specified CustomStyleProperty_1.


Declaration

public Boolean TryGetValue(UnityEngine.UIElements.CustomStyleProperty<UnityEngine.Sprite> property, out Sprite value);

Returns

Boolean True if the property is found, false if not.

Description

Gets the value associated with the specified CustomStyleProperty_1.


Declaration

public Boolean TryGetValue(UnityEngine.UIElements.CustomStyleProperty<UnityEngine.UIElements.VectorImage> property, out UnityEngine.UIElements.VectorImage value);

Returns

Boolean True if the property is found, false if not.

Description

Gets the value associated with the specified CustomStyleProperty_1.


Declaration

public Boolean TryGetValue(UnityEngine.UIElements.CustomStyleProperty<T> property, out T value);

Returns

Boolean True if the property is found, false if not.

Description

Gets the value associated with the specified CustomStyleProperty_1.


Declaration

public Boolean TryGetValue(UnityEngine.UIElements.CustomStyleProperty<System.String> property, out String value);

Returns

Boolean True if the property is found, false if not.

Description

Gets the value associated with the specified CustomStyleProperty_1.