setstackhidden
Controls whether a function’s frames appear in Apex’s supported stack-inspection views.
Syntax
setstackhidden(target: function | number, hidden: boolean) -> ()
Also available as
set_stack_hidden
Parameters
| Parameter | Type | Description |
|---|---|---|
target | function or number | Function or visible caller level. |
hidden | boolean | Whether supported inspection omits its frames. |
Description
Target can be a function or visible caller level. The boolean is required. Hidden frames are omitted and visible caller levels are renumbered. This changes inspection, not execution, and does not change the engine’s original trace reader. Use isstackhidden to inspect the setting.
Example
local function sample() return 1 end
setstackhidden(sample, true)
print(isstackhidden(sample))
setstackhidden(sample, false)
These are Game executor contracts. Check build requirements and session lifetimes before using them.
