Topic: Bug & Fix: "This character is not a prefab."
Hello
I'm using UFE2 2.6.0 and Unity 2022.3.26f1.
Problem:
For a new character, I´m importing the FBX file, set type to "humanoid" and create a Prefab out of it. Since Unity 2022 the option for creating an "Original Prefab" was removed. (see https://forum.unity.com/threads/how-to- … t.1393867/
Instead unity is creating always a Prefab-Variant.
So if you want to preview your animation with the characters Prefab in e.g. the move-editor, choosing the Prefab results in "This character is not a prefab." error.
Fix:
Inside "MoveEditorWindow.cs" in line 796 the code asks whether the loaded prefab is of type "regular":
else if (PrefabUtility.GetPrefabAssetType(selectedCharacterPrefab) != PrefabAssetType.Regular)
With Unity2022 you only can create Prefabs of type "variant", so it helps if you change the code to:
else if (PrefabUtility.GetPrefabAssetType(selectedCharacterPrefab) != PrefabAssetType.Variant)
or if you want to be compatible to both types of Prefab:
else if (PrefabUtility.GetPrefabAssetType(selectedCharacterPrefab) == PrefabAssetType.NotAPrefab)
I don't know if the change can cause new problems, but at least it worked for me now.
PS: You can also use the fix for the "not a prefab" error in the hit-box-editor.