Skip to main content

Script-Filter

script-filter is executed every frame if it is determined that the attached marker should be visible.

warning

Because the function is executed every frame when the marker is visible, it can impact FPS significantly if you aren't careful with your logic!

Default Parameters

ParameterTypeDescription
markerMarkerA reference to the marker firing the script.

Usage

pack.xml
<marker ... script-filter="DoSomethingWhenMarkerIsVisible(1)">
<marker ... script-filter="DoSomethingWhenMarkerIsVisible(2)">