VeriorPies / ParrelSync

(Unity3D) Test multiplayer without building
MIT License
4.51k stars 318 forks source link

[Question] ParrelSync namespace undetected - Can't use IsClone() #31

Closed TheYellowArchitect closed 3 years ago

TheYellowArchitect commented 3 years ago

I try to use ClonesManager.IsClone https://github.com/VeriorPies/ParrelSync/wiki/List-of-APIs Yet, there is nothing detected under ParrelSync, except .UnityNear I am certain ClonesManager.cs is inside the namespace of ParrelSync

For clarification, inside ClonesManager.cs, IsClone() is a function, so it definitely exists. I guess this is a namespace issue, perhaps related to how the project folder structure is? idk, asking if anyone has a suggestion

TheYellowArchitect commented 3 years ago

Maybe the issue is that it is inside an Editor folder Yet, if I pull it out, the rest of ParrelSync breaks (21 errors)

Any suggestion?

Edit: I even tried putting the code within #if UNITY_EDITOR/#endif, doesn't detect it either Edit2: I am putting using ParrelSync; at the top

Example doesn't work either O_o image

TheYellowArchitect commented 3 years ago

I found a workaround after hours of thinking, but this is too hacky. image

image

j1mmie commented 3 years ago

Huh, running into this as well. Creative workaround there. I suppose something more fault-tolerant would just look for the .clone file

314pies commented 3 years ago

Is this still an issue?

happypepper commented 2 years ago

Yes, I am seeing this too