文档

Unity Engine

Unity Engine

GetCustomPropertyDouble<T>(T)

Check whether a custom property is a double type and return its value.
阅读时间1 分钟最后更新于 1 个月前

Definition

public double GetCustomPropertyDouble<T>(T propertyEnum) where T : struct

Parameters

propertyEnum

T
Enum value indicating a property.

Returns

Type

Description

doubleReturns the property's value if the property is valid and if the value is a double type. Otherwise, returns 0.0.