getDecalInstance
Definition
-- @/=[C]:-1
function getDecalInstance(...)
Callers
@/lua/ge/extensions/editor/gen/region.lua
-- local ndecal = editor.getDecalTemplates():size()
-- lo('?? ndec:'..tostring(out.inconform)) --tostring(Engine.Render.DecalMgr.getSet())) --..tostring(Engine.Render.DecalMgr.getClosestDecal(vec3(0,0,0)))) --..tostring(editor.getDecalInstance(1)))
@/lua/ge/extensions/editor/api/decal.lua
for index=0, editor.getDecalInstanceVecSize() - 1 do
local inst = editor.getDecalInstance(index)
if inst and (inst.template:getName() == template:getName()) then
local function getDecalInstance(index)
return Engine.Render.DecalMgr.getDecalInstance(index)
local function getDecalInstance(index)
return Engine.Render.DecalMgr.getDecalInstance(index)
end
@/lua/ge/extensions/editor/gen/world.lua
local nm = rayCast.object.name
lo('?? mup0:'..tostring(nm)..':'..tostring(scope)..':'..tostring(indrag)..':'..tostring(cedit.part)..':'..tostring(cmesh)..':'..tostring(Engine.Render.DecalMgr.getDecalInstance(1))) --#Engine.Render.DecalMgr.getSet():getObjects())) --..tostring(editor.getDecalTemplates():size())) --..rayCast.object.name)
if nm == nil then return end
@/lua/ge/extensions/editor/decalEditor.lua
for i = 0, N - 1 do
local inst = editor.getDecalInstance(i)
if inst then
for id, oldPosition in pairs(actionData.oldPositions) do
local instance = editor.getDecalInstance(id)
instance.position = oldPosition
for id, newPosition in pairs(actionData.newPositions) do
local instance = editor.getDecalInstance(id)
instance.position = newPosition
for id, _ in pairs(actionData.oldTangents) do
local instance = editor.getDecalInstance(id)
instance.tangent = actionData.oldTangents[id]
for id, _ in pairs(actionData.newTangents) do
local instance = editor.getDecalInstance(id)
instance.tangent = actionData.newTangents[id]
for id, _ in pairs(actionData.oldSizes) do
local instance = editor.getDecalInstance(id)
instance.size = actionData.oldSizes[id]
for id, _ in pairs(actionData.newSizes) do
local instance = editor.getDecalInstance(id)
instance.size = actionData.newSizes[id]
for _,instanceData in ipairs(actionData.instancesData) do
local instance = editor.getDecalInstance(instanceData.id)
editor.deleteDecalInstance(instance)
local function createInstanceActionUndo(actionData)
local instance = editor.getDecalInstance(actionData.instanceData.id)
if isSelected(instance) then
for id, instanceData in pairs(actionData.instancesData) do
local instance = editor.getDecalInstance(id)
editor.deleteDecalInstance(instance)
for index=0, editor.getDecalInstanceVecSize() - 1 do
local inst = editor.getDecalInstance(index)
if inst and (inst.template:getName() == selectedTemplate:getName()) then
for index=0, editor.getDecalInstanceVecSize()-1 do
local inst = editor.getDecalInstance(index)
if inst then
for index=0, editor.getDecalInstanceVecSize() - 1 do
local inst = editor.getDecalInstance(index)
if inst and (inst.template:getName() == template:getName()) then
@/lua/ge/extensions/c2/panelPlugins/tileManager.lua
for i = 0, count - 1 do
local inst = editor.getDecalInstance(i)
if inst and inst.position then
for i, decalId in ipairs(entry.decals) do
local inst = editor.getDecalInstance(decalId)
if inst then