Documentation

Unity Engine

Download Unity

Unity Engine

GetCustomPropertyInt32<T>(T)

Check whether a custom property is an integer type and return its value.
Read time 1 minuteLast updated 2 months ago

Definition

public int GetCustomPropertyInt32<T>(T propertyEnum) where T : struct

Parameters

propertyEnum

T
Enum value indicating a property.

Returns

Type

Description

intReturns the property's value if the property is valid and if the value is an integer type. Otherwise, returns 0.