Jump to content

SetShadowMapSize No work. ( Lua )


Go to solution Solved by Josh,

Recommended Posts

Posted
 
image.thumb.png.c10278fc43388471e67e5ee4c6f547ad.png
local foco = world:Get():GetTaggedEntities("Foco")
 
if #foco > 0 then
    local foco= foco[1]
   
        foco:SetShadowmapSize(2048)
    Print("🎥 Foco Encontrado")
else
    Print("⚠️ No se encontró ninguna entidad con el tag 'Foco'")
end

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

  • Solution
Posted

In your code, foco is an entity, not a light, because GetTaggedEntities() returns an Entity object. You need to cast it to a light like this:

light = Light(foco)

  • Like 1

Let's build cool stuff and have fun. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...