- Home /
How work Extract From Prefab option in menu Assets?
Hi, I try to understand how work Extact From Prefab option from Menu Assets.
I tried to marking prefabs and models, also gameObject but this option is always disabled.
I checked also class PrefabUtility but it hasn't any similar method. PrefabUtility
EDIT
I found this in documentation:
https://docs.unity3d.com/Manual/FBXImporter-Materials.html
If you want to modify the properties of the Materials in Unity, you can extract them all at once using the Extract Materials button. If you want to extract them one by one, go to Assets > Extract From Prefab. When you extract Materials this way, they appear as references in the Remapped Materials list.
I marked model with material, set Location to Use Embedded Material and delete material in Remapped Material category. After that I can use Exctract Material Button to get material.
I have found in AssetDatabase similar method. https://docs.unity3d.com/ScriptReference/AssetDatabase.ExtractAsset.html
I try to extract material with Extract From Prefab but this option is disabled.
How can I use this option?
Answer by unityBerserker · May 01, 2018 at 01:18 PM
Option Extract from prefab is enable when we mark material in expanded model (if material exist).
Below you can article about that.
Your answer
Follow this Question
Related Questions
Apply Changes to Prefab - Unity 2018 0 Answers
How To Make Objects Appear Lit Without Using Lighting 2 Answers
Please manage the error 'Can not instantiate objects with a parent which is persistent.' 1 Answer
The variable othertransform of Prefab has not been assigned 2 Answers
Can you call a coroutine from a script on a prefab? 1 Answer