Assets, materials, and shaders
Understand reusable project resources and how scene objects reference them.
Project resources
Assets, materials, scripts, and shaders live at the project level. Scene objects store references to those resources, allowing the same mesh, texture, material, or script to be reused in multiple scenes.
Assets
Upload models, textures, audio, and other supported files through the asset library. Animated GLTF/GLB models expose their embedded clip names through gameObject.getAnimationNames().
Materials
Materials control surface appearance and may reference texture assets. Assign materials through an object’s inspector or through the MCP material and scene-object tools.
Shaders
Project shaders contain GLSL source that can be referenced by compatible material settings. Keep shader source and its expected uniforms together, and test it in the real editor viewport.
Animation names are exact
Clip lookup is case-sensitive. Print getAnimationNames() before hardcoding a name from a model.