User Tools

Site Tools


script:world_event:getcameraeditstate

getCameraEditState


  • Parameters and types: None
  • Return value and type:
    • code: numberSuccess (ErrorCode.OK) ErrorCode
    • state: numberstate value (CameraEditState) CameraEditState
  • The main function of this method is to obtain the perspective editing status
  • The specific use cases are as follows:

Get the current perspective editing status

local result,state=World:getCameraEditState()
if state==0 then--0:Default
	Chat:sendSystemMsg("Current perspective editing status is:Default")
elseif state==1 then--1:Editing
	Chat:sendSystemMsg("Current perspective editing status is:Editing")
elseif state==2 then--2:Testing
	Chat:sendSystemMsg("Current perspective editing status is:Testing")
end

If you have any questions about Developer Tools, feel free to join our official discord server Mini World Global DEV discord

script/world_event/getcameraeditstate.txt · Last modified: 2024/06/01 05:20 by don