Quick Start
Get a model streaming in your Unity scene in under 5 minutes.
Last updated
Was this helpful?
Get a model streaming in your Unity scene in under 5 minutes.
The SDK includes ready-to-use prefabs. Import them first:
Open Window > Package Manager.
Select Polygon Streaming from the package list.
Expand the Samples section and click Import.
Then in your scene:
Drag the Stream Controller prefab into your scene. Assign your scene camera to the Viewer Camera field.
Drag the Streaming Model prefab into your scene. Assign the StreamController to the Stream Controller field, and paste your XRG model URL into Source Url.
Press Play.
If you prefer to set up from scratch:
Create an empty GameObject, add the StreamController component, and assign your scene camera to Viewer Camera.
Create another empty GameObject where you want the model to appear, add the StreamingModel component, assign the StreamController, and paste your XRG URL into Source Url.
Press Play.
If Viewer Camera is left empty, the SDK falls back to
Camera.mainat runtime and logs a warning.
The model begins streaming automatically on the first frame. No code required for basic usage.
The StreamingModelPreview component (added automatically) renders a lightweight preview of each model directly in the Scene View while in Edit Mode. Toggle it on or off in the Inspector.
If occlusion culling is enabled (default), add a layer named exactly PolygonStreaming in Edit > Project Settings > Tags and Layers. The SDK auto-creates this layer in the Editor via AutoAddLayerOnLoad, but verify it exists if you encounter occlusion issues.
On first use, the SDK creates Assets/Resources/SosCacheSettings.asset automatically. This ScriptableObject controls memory and disk cache sizes. You do not need to create it manually.
Stream Controller Settings — Configure LOD budgets, occlusion culling, and distance factors.
Streaming Model Component — Per-model options: materials, animation, VRM settings.
Static Model Streaming — Code examples for runtime control of static models.
Animated GLB Models — Play embedded animations with custom Animator Controllers.
VRM Avatar Streaming — Expressions, spring bones, look-at, VRMA, and Mecanim.
Last updated
Was this helpful?
Was this helpful?