GE Lua Documentation

Press F to search!

onEnabled

Definition


-- @/lua/ge/client/postFx/smaa.lua:53
smaaPostEffectCallbacks.onEnabled = function()
  -- log('I', 'smaaPostEffect', 'onEnabled called for smaaPostEffect')
  local fxaa_postfx = scenetree.findObject("FXAA_PostEffect")
  if fxaa_postfx then
    fxaa_postfx:disable()
  end
  return true
end

Callers