GE Lua Documentation

Press F to search!

getAxisGizmoScaleOffset

Definition


-- @/=[C]:-1
function getAxisGizmoScaleOffset(...)

Callers

@/lua/ge/extensions/editor/dynamicDecals/selection.lua
        if gizmo.getDragCount() > 0 then
          local delta = vec3(worldEditorCppApi.getAxisGizmoScaleOffset())
          api.scaleLayer(layerData, delta)
@/lua/ge/extensions/editor/forestEditor.lua
      for index, obj in ipairs(editor.selection.forestItem) do
        local delta = vec3(worldEditorCppApi.getAxisGizmoScaleOffset())
        local mul = (delta.x < 0) and -1 or ((delta.y < 0) and -1 or (delta.z < 0 and -1 or 1))
@/lua/ge/extensions/editor/objectTool.lua
  elseif worldEditorCppApi.getAxisGizmoMode() == editor.AxisGizmoMode_Scale then
    local delta = worldEditorCppApi.getAxisGizmoScaleOffset()
    editor.scaleObjectSelection(delta, editor.getAxisGizmoTransform():getColumn(3))