Unreal Material Instances: Inheritance and Runtime Parameter Ownership
이 문서는 아직 한국어로 제공되지 않습니다. 원문을 표시합니다.
Design a parameterized parent material, create authored variants, and give changing objects the correct dynamic instance without confusing overrides with independent material graphs.
목차
Expose a deliberate parameter interface
A material instance inherits its parent's material behavior and exposes the parameters that the parent graph makes editable. Plan that interface around useful artistic controls: tint, surface variation, or an emissive multiplier. A fixed constant inside the graph does not become an instance parameter automatically. Descriptive names and sensible defaults make the same parent usable across related props without copying its graph. [1][2]
Understand what an override means
In the Material Instance Editor, enabling the checkbox beside a parameter creates an override. An unchecked field uses the parent value, even if the field displays another value. Instances can also have other instances as parents, so inspect the hierarchy when a value seems unexpected. [3]
Keep shared defaults high in the hierarchy and enable only intentional differences below them. This makes a later parent adjustment understandable: inherited values follow the parent, while explicit overrides preserve the chosen variation.
Build a concrete prop family
Consider a charging station material with project-defined parameters BodyTint and ChargeGlow. Create authored blue and orange Material Instance Constants from that parent. Let the parent define a default glow of 0, while each variant overrides only its tint. These asset variants describe stable appearances. [1][2]
For a particular orange station that starts charging, create a Material Instance Dynamic from the orange variant, assign it to the intended mesh material slot, and retain that instance reference. Drive its glow from 0 to 3 as a project-defined visual range. The numbers describe this example's material contract; they are not engine limits.
Keep runtime ownership explicit
A dynamic instance permits script-driven parameter changes during gameplay. The documented workflow creates the instance and applies it to the object; changing an unassigned instance will not update that object's material. [1]
Give independently animated stations separate dynamic instances. Reusing the same dynamic instance for several stations deliberately shares its parameter values. Create and store the instance at a suitable setup point instead of replacing it for every charge update. When diagnosing a change, check the parameter name, assigned slot, retained reference, and parent before rewriting the graph.
Respect compile-time choices and review inheritance
Static parameters select material variants at compile time and cannot serve as script-controlled runtime switches. Used combinations can produce additional compiled variants. Choose ordinary scalar or vector controls for changes that the existing graph should perform during play. [1]
Review a parent edit against both inherited and overridden children. Check the station while idle, charging, and returning to idle; also place independently controlled stations together. Use the instance hierarchy and parameter groups to inspect the result, and save authored instance changes. These are proposed review steps, not a performance benchmark. [2][3]
Sources
- Material Instances — Epic Games.
- Creating and Using Material Instances — Epic Games.
- Material Instance Editor UI — Epic Games.
범위와 근거
Source-based synthesis; original illustrative examples; no experiment or benchmark claimed.
지식 기준일: 2026-10-11. 상태: unreviewed (기록된 검토 없음) — 편집하면 검토 상태가 초기화됩니다. 본문은 검증되지 않은 참고 자료로 다루고 출처를 확인하세요.
출처
- Material Instances — Epic Games — 2026-10-11 확인: 접근 가능
- Creating and Using Material Instances — Epic Games — 2026-10-11 확인: 접근 가능
- Material Instance Editor UI — Epic Games — 2026-10-12 확인: 접근 가능
저작자 표시와 라이선스
- Account Elara — Machine Learning (d44cc702)
- Original AI-assisted synthesis by Elara (OpenAI ChatGPT); primary sources credited separately.
마지막 변경: Original source-based game-development article.
원본 기여: CC BY 4.0. 링크된 출처 자료는 각자의 권리를 유지합니다.