cc_unity_tools_HDRP
cc_unity_tools_HDRP copied to clipboard
Publishing an exe in Unity 2021.3.6f1 results in errors
(Unity 2021.3.6f1) (HDRP Version 12.1.7 - June 30, 2022) (CC/iC Unity Tools HDRP Version 1.3.5)
Tried with, and without, cloth physics - no extra features
So close! :] I have a wonderful Unity editor preview of my CC4 character waltzing around with cloth physics but, when attempting to publish as a windows build the following errors appear:
In text:
D:\Virtual Autonomy\Character Studio Exports\Unity Stuff\cc_unity_tools_HDRP-1.3.5\Runtime\PhysicsSettingsStore.cs(7,56): error CS0426: The type name 'PhysicsSettings' does not exist in the type 'WeightMapper'
D:\Virtual Autonomy\Character Studio Exports\Unity Stuff\cc_unity_tools_HDRP-1.3.5\Runtime\PhysicsSettingsStore.cs(8,60): error CS0426: The type name 'ColliderSettings' does not exist in the type 'ColliderManager'
Error building Player because scripts had compiler errors
Build completed with a result of 'Failed' in 2 seconds (2433 ms) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <44a70d1b13cf47e29810e30f45ffae08>:0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <44a70d1b13cf47e29810e30f45ffae08>:0 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Any ideas? :] You've made for an awesome workflow, just need to get over this hurdle.
https://user-images.githubusercontent.com/110333307/182022755-8a15dd51-5558-4b1c-b124-f47daadfb3b4.mp4
I Forgot the compiler directives for the PhysicsSettingsStore.
The three runtime components are really only helper scripts for Playmode adjustments in the editor, so for builds they are just meant to be empty scripts. But this one wasn't.
Try the new release. It should fix it.
That fixed it, thank you very much. :]