Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


InPrefab

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

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor
[InspectorName("Use Embedded Materials")][Tooltip("Embed the material inside the imported asset.")]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.