Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetBool

Gets the value of a named bool property.
Read time 1 minuteLast updated 5 days ago

Definition

GetBool(int)

Gets the value of a named bool property.
public bool GetBool(int nameID)

Parameters

nameID

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

Returns

Type

Description

boolThe value for the bool you specify. Returns
false
if VisualEffect.HasBool returns
false
.

GetBool(string)

Gets the value of a named bool property.
public bool GetBool(string name)

Parameters

name

The name of the property.

Returns

Type

Description

boolThe value for the bool you specify. Returns
false
if VisualEffect.HasBool returns
false
.