SetObjectEditable: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 7: Line 7:
{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|object|The object identifier.}}
{{FuncParam|object|The object identifier.}}
{{FuncParam|EditMode|__EDIT_ME__}}
{{FuncParam|EditMode|One of the [[EditModes]].}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true''' on success.}}


== Example ==
== Example ==
__EDIT_ME__
See the mapeditor/client/editor.lua script in the example scripts repository. https://github.com/BlueMountainsIO/OnsetLuaScripts


{{RelatedFunctions}}
{{RelatedFunctions}}

Latest revision as of 10:30, 12 May 2020

SetObjectEditable

Type: Function
Context: Client
Introduced: v1.0

Description

Enables a gizmo on an object. A gizmo can be used to move, rotate and scale the object with the mouse.

Syntax

SetObjectEditable(object, EditMode)

Parameters

  • object
    The object identifier.
  • EditMode
    One of the EditModes.

Return Value

  • Returns true on success.

Example

See the mapeditor/client/editor.lua script in the example scripts repository. https://github.com/BlueMountainsIO/OnsetLuaScripts

See also