getClassIsSelectable
Definition
-- @/=[C]:-1
function getClassIsSelectable(...)
Callers
@/lua/ge/extensions/editor/api/core.lua
local function getObjectTypeSelectable(typeName)
return worldEditorCppApi.getClassIsSelectable(typeName)
end
@/lua/ge/extensions/editor/objectTool.lua
local defaultFlags = bit.bor(SOTTerrain, SOTWater, SOTStaticShape, SOTStaticObject, SOTPlayer, SOTItem, SOTVehicle, SOTForest)
if not worldEditorCppApi.getClassIsSelectable("TSStatic") then
defaultFlags = bit.band(defaultFlags, bit.bnot(SOTStaticShape))
local defaultFlags = bit.bor(SOTTerrain, SOTWater, SOTStaticShape, SOTStaticObject, SOTPlayer, SOTItem, SOTVehicle, SOTForest)
if not worldEditorCppApi.getClassIsSelectable("TSStatic") then
defaultFlags = bit.band(defaultFlags, bit.bnot(SOTStaticShape))
local object = scenetree.findObjectById(objectIdByIconClick)
if worldEditorCppApi.getClassIsSelectable(object:getClassName())
and editor.isObjectSelectable(object) then
and not editor.isAxisGizmoHovered() then
if core_forest.getForestObject() and not worldEditorCppApi.getClassIsSelectable("Forest") then core_forest.getForestObject():disableCollision() end
local defaultFlags = bit.bor(SOTTerrain, SOTWater, SOTStaticShape, SOTStaticObject, SOTPlayer, SOTItem, SOTVehicle, SOTForest)
local defaultFlags = bit.bor(SOTTerrain, SOTWater, SOTStaticShape, SOTStaticObject, SOTPlayer, SOTItem, SOTVehicle, SOTForest)
if not worldEditorCppApi.getClassIsSelectable("TSStatic") then
defaultFlags = bit.band(defaultFlags, bit.bnot(SOTStaticShape))
if clickedHoveredObject and raycastMode and imgui.IsMouseDragging(0, 1) then
if core_forest.getForestObject() and not worldEditorCppApi.getClassIsSelectable("Forest") then core_forest.getForestObject():disableCollision() end
local defaultFlags = bit.bor(SOTTerrain, SOTWater, SOTStaticShape, SOTStaticObject, SOTPlayer, SOTItem, SOTVehicle, SOTForest)
local defaultFlags = bit.bor(SOTTerrain, SOTWater, SOTStaticShape, SOTStaticObject, SOTPlayer, SOTItem, SOTVehicle, SOTForest)
if not worldEditorCppApi.getClassIsSelectable("TSStatic") then
defaultFlags = bit.band(defaultFlags, bit.bnot(SOTStaticShape))
@/lua/ge/extensions/editor/materialEditor.lua
if not im.GetIO().WantCaptureMouse and editor.isViewportHovered() and not editor.isAxisGizmoHovered() then
if core_forest.getForestObject() and not worldEditorCppApi.getClassIsSelectable("Forest") then core_forest.getForestObject():disableCollision() end
local defaultFlags = bit.bor(SOTTerrain, SOTWater, SOTStaticShape, SOTPlayer, SOTItem, SOTVehicle, SOTForest)
local defaultFlags = bit.bor(SOTTerrain, SOTWater, SOTStaticShape, SOTPlayer, SOTItem, SOTVehicle, SOTForest)
if not worldEditorCppApi.getClassIsSelectable("TSStatic") then
defaultFlags = bit.band(defaultFlags, bit.bnot(SOTStaticShape))