ドキュメント

Unity Engine

Unity Engine

GetCustomPropertyFloat<T>(T)

Check whether a custom property is a float type and return its value.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public float GetCustomPropertyFloat<T>(T propertyEnum) where T : struct

Parameters

propertyEnum

T
Enum value indicating a property.

Returns

Type

Description

floatReturns the property's value if the property is valid and if the value is a float type. Otherwise, returns 0.0f.