Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetBool

Sets the value of a boolean uniform.
Read time 1 minuteLast updated 4 days ago

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.