Auto-Setup-for-Unity icon indicating copy to clipboard operation
Auto-Setup-for-Unity copied to clipboard

Attempt to copy properties from a null material (HDRP)

Open sna-scourtney opened this issue 3 years ago • 2 comments

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.

sna-scourtney avatar Oct 14 '21 16:10 sna-scourtney

Same for character from CC4 and unity 2021.3.2f1

zuksoon avatar May 20 '22 08:05 zuksoon

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

ndarlington avatar May 20 '22 12:05 ndarlington