Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetValue

Gets the value associated with the specified CustomStyleProperty<T>.
Read time 2 minutesLast updated 10 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<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.