기술 자료

Unity Engine

Unity Engine

GetInt

Get a named exposed integer.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

GetInt(int)

Get a named exposed integer.
public int GetInt(int nameID)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

Returns

Type

Description

intThe value for the integer you specify. Returns 0 if VisualEffect.HasInt returns false.

GetInt(string)

Get a named exposed integer.
public int GetInt(string name)

Parameters

name

The name of the property.

Returns

Type

Description

intThe value for the integer you specify. Returns 0 if VisualEffect.HasInt returns false.