Static Model Streaming
Stream and display static (non-animated) 3D models. Supported source formats: GLB, FBX, and other geometry formats converted to XRG.
Minimal Code Example
using UnityEngine;
public class StaticModelExample : MonoBehaviour
{
public StreamingModel streamingModel;
void Start()
{
streamingModel.SetLoadedCallback(() => Debug.Log("Model is ready!"));
streamingModel.SetLoadFailedCallback(ex => Debug.LogError(ex.Message));
}
}Loading starts automatically — no explicit Load() call needed.
Common Operations
Swap URL at runtime:
streamingModel.enabled = false;
streamingModel.sourceUrl = "https://example.com/new_model.xrg";
streamingModel.enabled = true;Custom materials:
Physics collider:
For the full API reference (camera swapping, events, troubleshooting), see
USAGE_STATIC_MODELS.mdshipped with the SDK package.
Last updated
Was this helpful?