Definition
SetVSceneScriptBoolVariable(string variable, bool value)
Description
This function sets the value of the Boolean variable defined in the script attached to the VScene Script object.
Parameters
variable
Specifies the name of the Boolean variable defined in the script attached to the VScene Script object.
value
Specifies the value of the Boolean variable to be set.
Example
--script name is SetVSceneScriptBoolVariable.lua attached a to game object such as water function Init() SetVSceneScriptBoolVariable("a", true) end function Update() end
Assuming that the variable “a” is defined in the script attached to the VScene Script object, SetVSceneScriptBoolVariable function sets the value of “a” to true.
SetVSceneScriptBoolVariable