GE Lua Documentation

Press F to search!

getPrefabByChild

Definition


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

Callers

@/lua/ge/extensions/editor/levelValidator.lua
      local object = scenetree.findObjectById(id)
      local prefab = Prefab.getPrefabByChild(object)
      if prefab then
          if hash == hash2 then
            local prefab = Prefab.getPrefabByChild(object)
            if prefab then
@/lua/ge/ge_utils.lua

  local parentPrefab = Prefab.getPrefabByChild( obj )
  if parentPrefab and parentPrefab:isChildOfGroup(group.obj) then
@/lua/ge/extensions/editor/roadEditor.lua
    local road = scenetree.findObjectById(id)
    if road and not Prefab.getPrefabByChild(road) then
      local oldNodes = editor.getNodes(road)
          if road then
            showRoad(road, Prefab.getPrefabByChild(road) and roadRiverGui.highlightColors.hoverSelectNotAllowed or roadRiverGui.highlightColors.hover)
          end
          if road then
            showRoad(road, Prefab.getPrefabByChild(road) and roadRiverGui.highlightColors.lightHoverSelectNotAllowed or roadRiverGui.highlightColors.lightHover)
          end
        if tableIsEmpty(hoveredNodeInfo) then
          if(not Prefab.getPrefabByChild(roadObj)) then
            local selectMode = nil
            repeat
              prefab = Prefab.getPrefabByChild(hoveredObject)
              if prefab then
@/lua/ge/extensions/flowgraph/modules/vehicleModule.lua
    self.vehicles[id].dontDelete = keep
    local prefab = Prefab.getPrefabByChild(scenetree.findObjectById(id))
    --print("preabid: " .. prefab:getID())