Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetValue

Gets the value associated with the specified CustomStyleProperty<T>.
Read time 3 minutesLast updated 4 days ago

Definition

TryGetValue(CustomStyleProperty<float>, float)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue(CustomStyleProperty<float> property, out float value)

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue(CustomStyleProperty<int>, int)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue(CustomStyleProperty<int> property, out int value)

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue(CustomStyleProperty<bool>, bool)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue(CustomStyleProperty<bool> property, out bool value)

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue(CustomStyleProperty<Color>, Color)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue(CustomStyleProperty<Color> property, out Color value)

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue(CustomStyleProperty<Length>, Length)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue(CustomStyleProperty<Length> property, out Length value)

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue<T>(CustomStyleProperty<StyleEnum<T>>, StyleEnum<T>)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue<TEnum>(CustomStyleProperty<StyleEnum<TEnum>> property, out StyleEnum<TEnum> value) where TEnum : struct, Enum

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue(CustomStyleProperty<Texture2D>, Texture2D)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue(CustomStyleProperty<Texture2D> property, out Texture2D value)

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue(CustomStyleProperty<Sprite>, Sprite)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue(CustomStyleProperty<Sprite> property, out Sprite value)

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue(CustomStyleProperty<VectorImage>, VectorImage)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue(CustomStyleProperty<VectorImage> property, out VectorImage value)

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue<T>(CustomStyleProperty<T>, T)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue<T>(CustomStyleProperty<T> property, out T value) where T : Object

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.

TryGetValue(CustomStyleProperty<string>, string)

Gets the value associated with the specified CustomStyleProperty<T>.
bool TryGetValue(CustomStyleProperty<string> property, out string value)

Parameters

Returns

Type

Description

boolTrue if the property is found, false if not.