Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


InPrefab

Unity imports materials as sub-assets.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
[Tooltip("Embed the material inside the imported asset.")][InspectorName("Use Embedded Materials")]InPrefab = 1

Remarks

Materials imported as sub-assets are read-only and can only be modified after they are extracted.
When using this setting, Unity does not extract the embedded textures during import.