View Single Post
05/22/23, 04:52 PM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Question detect if HUD hidden or shown

Looking for a way to detect if the HUD is shown. ive been been trying things like this but no success.

Code:
local hud = SCENE_MANAGER:GetScene("hud")
if hud:IsHidden() then
im able to with callbacks for 3 other related scenes but I'm trying to avoid that if possible.

**EDIT
figured it out

Code:
local hudScene = SCENE_MANAGER:GetScene("hud")
if hudScene:GetState() == SCENE_SHOWN then

Last edited by sinnereso : 05/22/23 at 08:53 PM.
  Reply With Quote