Version: 2020.1
public bool TryGetValue (CustomStyleProperty<float> property, out float value);
public bool TryGetValue (CustomStyleProperty<int> property, out int value);
public bool TryGetValue (CustomStyleProperty<bool> property, out bool value);
public bool TryGetValue (CustomStyleProperty<Color> property, out Color value);
public bool TryGetValue (CustomStyleProperty<Texture2D> property, out Texture2D value);
public bool TryGetValue (CustomStyleProperty<string> property, out string value);

返回

bool 如果找到了该属性,则为 true,否则为 false。

描述

获取与指定的 CustomStyleProperty 关联的值。