Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetBooleanValue(bool)

Try to parse the innerText and convert it to a boolean value.
Read time 1 minuteLast updated 9 days ago

Definition

public bool GetBooleanValue(bool defaultValue = false)

Parameters

defaultValue

Initial value if we cannot convert the innerText.

Returns

Type

Description

boolReturns the boolean representation of the expression.