Unity Sentis / ONNX inference
Discovery
list_ml_model_assets—.onnx,.nn,.ptunder Assetsget_ai_ml_package_inventory— Sentis, Barracuda, orcom.unity.ai.inferencefind_ai_related_scripts— labels Sentis / InferenceEngine or ONNX
Implementation checklist
- Import ONNX to
ModelAsset; useWorkerFactory/IWorkerpattern for Sentis 2.x. - Match input tensor names/shapes to training export metadata.
- Test on target platform (GPU vs CPU backend); mobile often needs quantized models.
- Barracuda is legacy — prefer Sentis for new work unless project is locked to Barracuda.
Tools for impact analysis
find_referenceson model asset path — who loads this ONNX?get_prefab_dependencies— prefabs pulling large models into buildsget_build_size_estimate— ONNX size in player build