Prefab models

    Prefab models convert prefabs to single drawcalls. This is useful for optimization, as Xenko only renders the final model instead of the separate entities in the prefab. When you make changes to the prefab, Game Studio regenerates the prefab model.

    Prefab models don't inherit elements such as lights, colliders, or other components — they're only models, and have to be used just like other models. For example, if you have a prefab comprising two models with physics components, the prefab model creates a single model from the two models and ignores the physics components. If you need to add components to a prefab model, add them to the prefab model itself.

    • In the Property Grid (on the right by default), next to Prefab, click Hand icon (Select asset).

    Select prefab for model

    • Select the prefab you want to create a model from and click OK.