reallusion / Auto-Setup-for-Unity

iClone / Character Creator / ActorCore Auto Setup for Unity Script
GNU General Public License v2.0
78 stars 28 forks source link

Attempt to copy properties from a null material (HDRP) #4

Open sna-scourtney opened 2 years ago

sna-scourtney commented 2 years ago

This occurs on import of a new character from CC3 into Unity 2021.1.19f1, HDRP 11.0.0, and it recurs whenever this code is re-executed based on user activity. Stack trace:

Trying to copy properties from null material.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
RLPlugin.RLEditor:CreateMaterials (System.Collections.Generic.HashSet`1<string>,string,RLPlugin.RLEditor/EBaseGeneration,LitJson.JsonData) (at Assets/Plugins/Reallusion/Auto-Setup-for-Unity/Editor/RLEditor.cs:1043)
RLPlugin.RLEditor:OnPostprocessAllAssets (string[],string[],string[],string[]) (at Assets/Plugins/Reallusion/Auto-Setup-for-Unity/Editor/RLEditor.cs:894)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[])

Initially I thought this might be related to https://github.com/reallusion/Auto-Setup-for-Unity/issues/1, but it persists even after the diffusion profile has been assigned to the character and clothing materials.

I took a brief look at the code but haven't yet had time to investigate deeply.

zuksoon commented 2 years ago

Same for character from CC4 and unity 2021.3.2f1

ndarlington commented 2 years ago

For hdrp (actually any pipeline) I would suggest using Victor's repositories for importing to Unity and/or blender. They're also endorsed by reallusion.

https://github.com/soupday/cc3_unity_tools_HDRP