GE Lua Documentation

Press F to search!

isNameValid

Definition


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

Callers

@/lua/ge/extensions/editor/sceneTree.lua
  -- check new name if valid
  if SimObject.isNameValid(name) == false then
    local msg = "Cannot rename scene node to '" .. name .. "', bad format (cannot start with %, a digit 0-9 or /, cannot be a class name)"
@/lua/ge/extensions/editor/api/valueInspector.lua
        -- check new name if valid
        if SimObject.isNameValid(val) == false then
          local msg = "Cannot rename scene node to '" .. val .. "', bad format (cannot start with %, a digit 0-9 or /, cannot be a class name)"