MerlinVR / UdonSharp

An experimental compiler for compiling C# to Udon assembly
MIT License
671 stars 87 forks source link

Sync & networking issues #135

Closed ancientnick closed 2 years ago

ancientnick commented 2 years ago

I've been getting errors that contain a lot of sync and networking issues in my project here are all of the errors in the order they appear

Assets\UdonSharp\Editor\Editors\UdonSharpComponentExtensions.cs(157,35): error CS1061: 'UdonBehaviour' does not contain a definition for 'SyncMethod' and no accessible extension method 'SyncMethod' accepting a first argument of type 'UdonBehaviour' could be found (are you missing a using directive or an assembly reference?)

Assets\UdonSharp\Editor\Editors\UdonSharpComponentExtensions.cs(157,59): error CS0117: 'Networking' does not contain a definition for 'SyncType'

Assets\UdonSharp\Editor\Editors\UdonSharpComponentExtensions.cs(160,35): error CS1061: 'UdonBehaviour' does not contain a definition for 'SyncMethod' and no accessible extension method 'SyncMethod' accepting a first argument of type 'UdonBehaviour' could be found (are you missing a using directive or an assembly reference?)

Assets\UdonSharp\Editor\Editors\UdonSharpComponentExtensions.cs(160,59): error CS0117: 'Networking' does not contain a definition for 'SyncType'

Assets\UdonSharp\Editor\Editors\UdonSharpComponentExtensions.cs(163,35): error CS1061: 'UdonBehaviour' does not contain a definition for 'SyncMethod' and no accessible extension method 'SyncMethod' accepting a first argument of type 'UdonBehaviour' could be found (are you missing a using directive or an assembly reference?)

Assets\UdonSharp\Editor\Editors\UdonSharpComponentExtensions.cs(163,59): error CS0117: 'Networking' does not contain a definition for 'SyncType'

Assets\UdonSharp\Editor\Editors\UdonSharpGUI.cs(73,31): error CS1061: 'UdonBehaviour' does not contain a definition for 'SyncMethod' and no accessible extension method 'SyncMethod' accepting a first argument of type 'UdonBehaviour' could be found (are you missing a using directive or an assembly reference?)

Assets\UdonSharp\Editor\Editors\UdonSharpGUI.cs(73,57): error CS0426: The type name 'SyncType' does not exist in the type 'Networking'

this was after importing the newest version

I'm not sure if I did something wrong or it needs to be fixed in the programing

MerlinVR commented 2 years ago

Make sure you're using the latest VRCSDK and U# version. If it still does not work reimport both following the install instructions until it works.