Show raw api
{
"functions": [
{
"name": "SetPosition",
"desc": "Moves the focus to `position`, creating and assigning the part on first call.",
"params": [
{
"name": "self",
"desc": "",
"lua_type": "ReplicationFocusTracker"
},
{
"name": "position",
"desc": "",
"lua_type": "Vector3"
}
],
"returns": [],
"function_type": "static",
"source": {
"line": 49,
"path": "src/streamingutils/src/Shared/ReplicationFocusTracker.lua"
}
},
{
"name": "IsActive",
"desc": "Whether a focus part currently exists (i.e. [ReplicationFocusTracker:SetPosition] has run).",
"params": [
{
"name": "self",
"desc": "",
"lua_type": "ReplicationFocusTracker"
}
],
"returns": [
{
"desc": "",
"lua_type": "boolean"
}
],
"function_type": "static",
"source": {
"line": 79,
"path": "src/streamingutils/src/Shared/ReplicationFocusTracker.lua"
}
}
],
"properties": [],
"types": [],
"name": "ReplicationFocusTracker",
"desc": "Keeps a single hidden part positioned at a point and added as a [Player] replication focus, so\nRoblox streams world content around that point. Reuses one part across position updates and\nremoves the focus (and destroys the part) on cleanup.\n\nThe subject is duck-typed at runtime -- anything with `AddReplicationFocus` /\n`RemoveReplicationFocus` methods -- so tests pass a plain table; the production caller always\npasses a [Player].",
"source": {
"line": 13,
"path": "src/streamingutils/src/Shared/ReplicationFocusTracker.lua"
}
}