Sacchan-VRC / SaccFlightAndVehicles

Other
109 stars 25 forks source link

The prefab is broken and it gives NULL reference error #28

Open AndersonFirmino opened 2 years ago

AndersonFirmino commented 2 years ago

Hi, first congratulations for the project I love your worlds and I always go there with my friends. It is a great pleasure to be able to use your prefabs in my worlds.

I'm doing something wrong here and I don't know how to go about it. I'll try to detail as much as possible to help you solve it.

I do the import and it goes smoothly. Then I pull the prefab called "shoreline" and put it in the scene so far so good.

But when I try to upload it shows a null reference error I'll try to put the prints with all the details below for you to inspect.

image image


SaccFlightAndVehicles.DFUNC_CarBoost.set_Boosting (System.Single value) (at Assets/SaccFlightAndVehicles/Scripts/SaccGroundVehicle/DFUNC/DFUNC_CarBoost.cs:31)
SaccFlightAndVehicles.DFUNC_CarBoost.Reset () (at Assets/SaccFlightAndVehicles/Scripts/SaccGroundVehicle/DFUNC/DFUNC_CarBoost.cs:156)
UnityEngine.GameObject:AddComponent(Type)
UdonSharpEditor.UdonSharpEditorUtility:GetProxyBehaviour(UdonBehaviour, ProxySerializationPolicy) (at Assets/UdonSharp/Editor/UdonSharpEditorUtility.cs:422)
UdonSharpEditor.UdonSharpEditorManager:CreateProxyBehaviours(List`1) (at Assets/UdonSharp/Editor/UdonSharpEditorManager.cs:1209)
UdonSharpEditor.InjectedMethods:PostBuildAssetBundles() (at Assets/UdonSharp/Editor/UdonSharpEditorManager.cs:371)
UnityEditor.BuildPipeline:BuildAssetBundles(String, AssetBundleBuild[], BuildAssetBundleOptions, BuildTarget)
VRC.SDK3.Editor.Builder.VRCWorldAssetExporter:ExportCurrentSceneResource()
VRC.SDK3.Editor.Builder.VRCWorldBuilder:ExportSceneResource()
VRC.SDK3.Editor.Builder.VRCWorldBuilder:ExportSceneAndPrepareForUpload()
VRC.SDK3.Editor.Builder.VRCWorldBuilder:ExportAndUploadSceneBlueprint()
VRC.SDKBase.Editor.VRC_SdkBuilder:ExportAndUploadSceneBlueprint()
VRC.SDK3.Editor.VRCSdkControlPanelWorldBuilder3:OnGUIScene() (at Assets/VRCSDK/SDK3/Editor/VRCSdkControlPanelWorldBuilder3.cs:252)
VRC.SDKBase.Editor.VRCSdkControlPanelWorldBuilder:ShowBuilder() (at Assets/VRCSDK/Dependencies/VRChat/Editor/ControlPanel/VRCSdkControlPanelWorldBuilder.cs:130)
VRC.SDK3.Editor.VRCSdkControlPanelWorldBuilder3:ShowBuilder() (at Assets/VRCSDK/SDK3/Editor/VRCSdkControlPanelWorldBuilder3.cs:43)
VRCSdkControlPanel:ShowBuilders() (at Assets/VRCSDK/Dependencies/VRChat/Editor/ControlPanel/VRCSdkControlPanelBuilder.cs:329)
VRCSdkControlPanel:OnGUI() (at Assets/VRCSDK/Dependencies/VRChat/Editor/ControlPanel/VRCSdkControlPanel.cs:214)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Sacchan-VRC commented 1 year ago

are you using the newest version of udonsharp from VRC Creator Companion?

SavoryPickle commented 1 year ago

Hey I'm having this same problem and was wondering if a solution was ever found?

ghost commented 1 year ago

You Need to Download The VRC Creator Companion From https://vrchat.com/home/download/sdk or https://vrchat.com/download/vcc

AndersonFirmino commented 1 year ago

are you using the newest version of udonsharp from VRC Creator Companion?

apologies for the delay in responding. I was absent from VRChat. I'm back to building maps and I'm going to use your prefabs. Then I'll give you a donation for your excellent work with him. I was using the old version of UdonSharp I will try to use the Creator Companion and compile. Thank you for the tips.