Version: 5.4

PlayerSettings.GetPropertyOptionalInt

Cambiar al Manual
public static bool GetPropertyOptionalInt (string name, ref int value, BuildTargetGroup target= BuildTargetGroup.Unknown);

Parámetros

name Name of the property.
value Variable, to which to store the value of the property, if set.
target An optional build target group, to which the property applies.

Valor de retorno

bool True if property was set and it's value assigned to given variable.

Descripción

Searches for property and assigns it's value to given variable.

Property is not required to exist. If it doesn't exist, value variable will not be changed and this method will return false.