User Tools

Site Tools


script:world_event:setcameraeditstate

setCameraEditState


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

local code = World:setCameraEditState(state)

if code == ErrorCode.OK then
	print('Execution successful', code )
else
	print('Execution failed')
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/setcameraeditstate.txt · Last modified: 2024/06/01 07:05 by don