fchb1239 / PhotonVR

A Unity Package containing all the necessary components to do VR networking with Photon
MIT License
41 stars 17 forks source link

Type or Namespace does not exist #36

Closed Gianni-K closed 3 months ago

Gianni-K commented 3 months ago

I have 16 errors that I cannot figure out how to fix: Assets\PhotonVR\Scripts\PhotonVRManager.cs(11,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManager.cs(12,14): error CS0234: The type or namespace name 'Realtime' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManager.cs(13,14): error CS0234: The type or namespace name 'Voice' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManager.cs(15,7): error CS0246: The type or namespace name 'ExitGames' could not be found (are you missing a using directive or an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManagerGUI.cs(13,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\Player\PhotonVRPlayer.cs(5,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\Player\PlayerSpawner.cs(3,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\Testing\PhotonVRColourChangerGUI.cs(5,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\Testing\PhotonVRCosmeticsChangerGUI.cs(7,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\Player\PlayerSpawner.cs(7,34): error CS0246: The type or namespace name 'MonoBehaviourPunCallbacks' could not be found (are you missing a using directive or an assembly reference?)

Assets\PhotonVR\Scripts\Player\PhotonVRPlayer.cs(13,35): error CS0246: The type or namespace name 'MonoBehaviourPun' could not be found (are you missing a using directive or an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManager.cs(19,36): error CS0246: The type or namespace name 'MonoBehaviourPunCallbacks' could not be found (are you missing a using directive or an assembly reference?)

Assets\PhotonVR\Scripts\Player\PhotonVRPlayer.cs(72,10): error CS0246: The type or namespace name 'PunRPCAttribute' could not be found (are you missing a using directive or an assembly reference?)

Assets\PhotonVR\Scripts\Player\PhotonVRPlayer.cs(72,10): error CS0246: The type or namespace name 'PunRPC' could not be found (are you missing a using directive or an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManager.cs(50,17): error CS0246: The type or namespace name 'RoomOptions' could not be found (are you missing a using directive or an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManager.cs(349,45): error CS0246: The type or namespace name 'DisconnectCause' could not be found (are you missing a using directive or an assembly reference?)

fchb1239 commented 3 months ago

Please import the PUN 2 package and Photon Voice form the asset store

Gianni-K commented 3 months ago

Thanks, I imported them. But there are still 11 errors: Assets\PhotonVR\Scripts\PhotonVRManager.cs(8,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManager.cs(10,14): error CS0234: The type or namespace name 'Voice' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManagerGUI.cs(13,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\Player\PhotonVRPlayer.cs(5,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\Player\PlayerSpawner.cs(3,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\Testing\PhotonVRColourChangerGUI.cs(5,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\Testing\PhotonVRCosmeticsChangerGUI.cs(7,14): error CS0234: The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)

Assets\PhotonVR\Scripts\PhotonVRManager.cs(15,36): error CS0246: The type or namespace name 'MonoBehaviourPunCallbacks' could not be found (are you missing a using directive or an assembly reference?)

Assets\PhotonVR\Scripts\Player\PhotonVRPlayer.cs(13,35): error CS0246: The type or namespace name 'MonoBehaviourPun' could not be found (are you missing a using directive or an assembly reference?)

Assets\PhotonVR\Scripts\Player\PlayerSpawner.cs(7,34): error CS0246: The type or namespace name 'MonoBehaviourPunCallbacks' could not be found (are you missing a using directive or an assembly reference?)

Failed to find entry-points: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Assembly-CSharp-Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.Exception: Failed to resolve assembly 'Assembly-CSharp-Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in directories: C:\Program Files\Unity\Hub\Editor\2022.3.35f1\Editor\Data\MonoBleedingEdge\lib\mono\unityjit-win32 C:\Program Files\Unity\Hub\Editor\2022.3.35f1\Editor\Data\MonoBleedingEdge\lib\mono\unityjit-win32\Facades C:\Program Files\Unity\Hub\Editor\2022.3.35f1\Editor\Data\PlaybackEngines\WebGLSupport C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.burst@1.8.16 C:\Users\giann\Deadly Orangutan\Assets\Plugins C:\Program Files\Unity\Hub\Editor\2022.3.35f1\Editor\Data\PlaybackEngines\AndroidPlayer C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.burst@1.8.16\Unity.Burst.CodeGen C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.visualscripting@1.9.4\Editor\VisualScripting.Core\Dependencies\DotNetZip C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.nuget.mono-cecil@1.11.4 C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.visualscripting@1.9.4\Editor\VisualScripting.Core\EditorAssetResources C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.collab-proxy@2.4.3\Lib\Editor\PlasticSCM C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.ide.rider@3.0.28\Rider\Editor C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.visualscripting@1.9.4\Editor\VisualScripting.Core\Dependencies\YamlDotNet C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.nuget.newtonsoft-json@3.2.1\Runtime C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.nuget.newtonsoft-json@3.2.1\Runtime\AOT C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.services.wire@1.2.5\Plugins C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.testtools.codecoverage@1.2.5\lib\ReportGenerator C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.ext.nunit@1.0.6\net35\unity-custom C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.collections@1.2.4\Unity.Collections.LowLevel.ILSupport C:\Users\giann\Deadly Orangutan\Assets\Plugins\WSA C:\Users\giann\Deadly Orangutan\Library\PackageCache\com.unity.visualscripting@1.9.4\Runtime\VisualScripting.Flow\Dependencies\NCalc C:\Program Files\Unity\Hub\Editor\2022.3.35f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport C:\Program Files\Unity\Hub\Editor\2022.3.35f1\Editor\Data\Managed C:\Program Files\Unity\Hub\Editor\2022.3.35f1\Editor\Data\Managed\UnityEngine C:\Users\giann\Deadly Orangutan\Library\ScriptAssemblies ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Assembly-CSharp-Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00105] in <853812ae52c341daaef3c62ecdb86b32>:0 at zzzUnity.Burst.CodeGen.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00007] in <74b8d24c73d245b5952c698ae125060a>:0 --- End of inner exception stack trace --- at zzzUnity.Burst.CodeGen.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00054] in <74b8d24c73d245b5952c698ae125060a>:0 at Burst.Compiler.IL.AssemblyLoader.Resolve (Mono.Cecil.AssemblyNameReference name) [0x0007e] in <74b8d24c73d245b5952c698ae125060a>:0 at Burst.Compiler.IL.Server.EntryPointMethodFinder.FindEntryPoints (System.String[] rootAssemblyNames, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore assemblyStore, Burst.Compiler.IL.AssemblyLoader assemblyLoader, Burst.Compiler.IL.NativeCompilerOptions options, Burst.Compiler.IL.Server.ProfileDelegate profileCallback, System.Boolean includeRootAssemblyReferences, System.Boolean splitTargets) [0x00055] in <74b8d24c73d245b5952c698ae125060a>:0 at Burst.Compiler.IL.Server.CompilerServer+<>cDisplayClass18_1.b0 (Burst.Compiler.IL.Server.Caching.CacheManager cacheManager) [0x0005e] in <74b8d24c73d245b5952c698ae125060a>:0 at Burst.Compiler.IL.Server.CompilerServer+<>cDisplayClass26_0`1[TResult].b0 () [0x00145] in <74b8d24c73d245b5952c698ae125060a>:0 at Burst.Compiler.IL.Server.CompilerServer.RunTask[TResult] (Burst.Compiler.IL.Server.TargetKey target, System.String taskName, System.String[] assemblyFolders, System.Threading.CancellationToken cancellationToken, System.Func2[T,TResult] function) [0x00131] in <74b8d24c73d245b5952c698ae125060a>:0 at Burst.Compiler.IL.Server.CompilerServer.FindMethods (Burst.Compiler.IL.Server.CompilerServerOptions options, Burst.Compiler.IL.Aot.AotCompilerOptions aotOptions, Burst.Compiler.IL.AssemblyDefinesDict assemblyDefines, Burst.Compiler.IL.Server.TargetKey target, Burst.Compiler.IL.Server.Caching.CacheManager cacheManager, Burst.Compiler.IL.CompilerStatistics stats, System.Threading.CancellationToken cancellationToken) [0x00299] in <74b8d24c73d245b5952c698ae125060a>:0 at Burst.Compiler.IL.Server.CompilerServer+<>c__DisplayClass26_01[TResult].b__0 () [0x00145] in <74b8d24c73d245b5952c698ae125060a>:0 at Burst.Compiler.IL.Server.CompilerServer.RunTask[TResult] (Burst.Compiler.IL.Server.TargetKey target, System.String taskName, System.String[] assemblyFolders, System.Threading.CancellationToken cancellationToken, System.Func`2[T,TResult] function) [0x00131] in <74b8d24c73d245b5952c698ae125060a>:0 at Burst.Compiler.IL.Server.CompilerServer.Compile (Burst.Compiler.IL.Server.CompilerServerOptions options, Burst.Compiler.IL.Server.CompilationMessageStreamer streamer, System.Threading.CancellationToken cancellationToken) [0x001ca] in <74b8d24c73d245b5952c698ae125060a>:0