Whether to allow switching of personal perspective||doc135632

September 20, 2022

Format

 Blockman:setCanSwitchView(enable) 
  • The class to which the function belongs:Blockman

Description

Sets whether to allow switching of the person's perspective.


Precautions

we can passswitchPersonViewTo determine whether the player can switch the personal perspective before and after this function is set.


Parameters

Variable name type Description
enable boolean Whether to allow switching of personal perspective


Code Samples

Blockman.Instance():switchPersonView()
Blockman.Instance():setCanSwitchView(false)
Blockman.Instance():switchPersonView()