fchb1239 / PhotonVR

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

i need a fix #12

Closed Joseph8402 closed 1 year ago

Joseph8402 commented 1 year ago

can you fix the error Error while saving Prefab: 'Assets/Resources/PhotonVR/Player.prefab'. You are trying to save a Prefab that contains the script '', which does not derive from MonoBehaviour. This is not allowed. Please change the script to derive from MonoBehaviour or remove it from the GameObject 'ObjectNameHere'.

fchb1239 commented 1 year ago

I am unaware of that issue, try re-importing the player.cs script

Joseph8402 commented 1 year ago

ok i will try that

Joseph8402 commented 1 year ago

it didnt do anything just made it impossible for it to work

fchb1239 commented 1 year ago

This is strange, try importing the package in a separate project and see if it works there.

Joseph8402 commented 1 year ago

ok but the impossible to work is for every script even before that

Joseph8402 commented 1 year ago

and it does work in other projects i will just change the project for my game if i get my game i will say and will close it

Joseph8402 commented 1 year ago

well im gonna update unity to try and fix

Joseph8402 commented 1 year ago

it is fixed