기술 자료

Unity Engine

Unity Engine

SetBool

Sets the value of a boolean uniform.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

SetBool(string, bool)

Sets the value of a boolean uniform.
public void SetBool(string name, bool val)

Parameters

name

The name of the property being set.

val

The boolean value to set.

Remarks

The value specified as argument can be used only by the shaders defined inside the .raytrace file associated with the RayTracingShader.

SetBool(int, bool)

Sets the value of a boolean uniform.
public void SetBool(int nameID, bool val)

Parameters

nameID

The ID of the property as given by Shader.PropertyToID.

val

The boolean value to set.

Remarks

The value specified as argument can be used only by the shaders defined inside the .raytrace file associated with the RayTracingShader.