The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Voice.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

error CS0103: The name 'PhotonEditorUtils' does not exist in the current context

Stephen
2021-03-05 14:57:42

Hi there, I was following a Valem tutorial on adding photon voice to a multiplayer VR project I am working on, the first issue I encountered was that when I imported Photon Voice 2 there was no voice app ID section in the server settings, so I reloaded the project anyway and had to start in safe mode because of the error stated above showing up in three files, from some research I understand this is probably because PhotonEditorUtils is not being loaded in or compiled in time for photon voice but I have no idea how to solve that the safest way and would like some tips or support on the matter, the files affected are: PhotonVoiceEditorUtils.cs lines 42 and 96 and VoiceConnectionEditor.cs line 98, any help would be much appreciated as I am new to unity and photon (and VR),

Regards,
Stephen

Comments

Stephen
2021-03-06 14:38:05

Commenting out the effected lines seems to have solved the issue but feels wrong

[Deleted User]
2021-03-08 08:39:55

Do you mind explaining how you fixed this a bit more?

JohnTube
2021-03-08 08:54:38

Hi @Stephen, @maxmark888,

Thank you for choosing Photon!

We are aware of this issue which is due to some files that were deleted from PUN2 which is included in Photon Voice 2. Those files are editor scripts that Photon Voice 2 depends on.
In order to fix this, the best way is to delete "Assets/Photon" folder and re import Photon Voice 2.

We will try to make this go away in the next version so updates won't cause this anymore hopefully.

Thank you for your understanding and patience!

[Deleted User]
2021-03-08 08:55:51

Thank you. So do I reimport all the photon files? (photon voice and normal photon)

JohnTube
2021-03-08 08:57:38

Well after deleting root Photon folder you won't have any Photon file in your project.
We always recommend importing Photon Voice 2 package only if you need PUN2 and Photon Voice 2 and not import PUN2 separately.
So import everything from Photon Voice 2 or just the files you need if you want to exclude some.

[Deleted User]
2021-03-08 09:02:06

Alright. Thanks for the help. If I get an error, I'll wait for the update. How long do you think until the update?

Stephen
2021-03-08 19:28:25

@maxmark888 wrote: »

Do you mind explaining how you fixed this a bit more?

This resolved the issue although I'm not sure how damaging it could be later down the line, but at least I don't have to reorganize my entire project because I started out without Voice2:

https://imgur.com/HxG31rt
https://imgur.com/PulBaaA
https://imgur.com/WT8eyFg

The files they come from are stated above in my last message, hope it helps.

JohnTube
2021-05-19 18:42:15

The solution here is to do a clean import.

Back to top