- Home /
Saving runtime created avatar
Hi everyone!
Need help with avatar after AvatarBuilder.BuildHumanAvatar. Avatar is valid and added to prefab, as showed at picture. But! I cant apply override to prefab. Unity says "A reference to an object in the scene cannot be applied to the Prefab asset", second picture.
PrefabUtility.SaveAsPrefabAssetAndConnect does not save the avatar to prefab. I am in searching the solution.
Is there any way to save/apply avatar to the prefab?
Thanks!
Answer by teraule · Aug 12, 2019 at 10:14 AM
Found out!
Saving by "AssetDatabase.CreateAsset" perfectly work!
Your answer
Follow this Question
Related Questions
What is runtime analogy for Editor's PrefabUtility.SetPropertyModifications? 0 Answers
nee help with Instantiating prefab at mouse position with GUI button 0 Answers
How to modify "resources.assets" (or alternative?) 2 Answers
Adding behaviors to a game object at run time via scriptable object 1 Answer
How to export Prefab to .FBX file on iOS platform at runtime ? 0 Answers