PunBasics-Tutorial error
Options
btckey
✭
Hello.
1) I use PunBasics-Tutorial for myself
When I lift the camera to the top I see duplicate names.
How to fix it ?
https://drive.google.com/open?id=1lJ8ZgfFsLuGBYMFLc5dy0rELgTMLsd16
2) How to create a chat for players ?
I did not find examples
1) I use PunBasics-Tutorial for myself
When I lift the camera to the top I see duplicate names.
How to fix it ?
https://drive.google.com/open?id=1lJ8ZgfFsLuGBYMFLc5dy0rELgTMLsd16
2) How to create a chat for players ?
I did not find examples
0
Comments
-
Hi @btckey,
Thank you for choosing Photon!
1) Could you describe the issue in a better way? Does it happen with the demo scene provided? What is the expected behaviour and actual behaviour? What PUN version are you using?
2) This is a separate question and a separate topic of discussion. You can continue here.0 -
My versions
Unity 2018.2.21f1 (64-bit) for WebGL
demo scene: Photon/PhotonUnityNetworking/Demos/PunBasics-Tutorial
PUN 2
I show it on video
https://drive.google.com/open?id=1lJ8ZgfFsLuGBYMFLc5dy0rELgTMLsd16
There are 2 players in the scene
and their names are duplicated0 -
This example PunBasics-Tutorial uses the top view.
If you put a third-person camera.
Errors appear, duplicate player names and health.
How can I fix this?0 -
This is a UI / Canvas issue.
You need to adjust it.
There are no duplicate names, you just see something you should not see.-1 -
I did not understand you, please describe in more detail what should I do to not see duplicate names.
Thank0 -
@btckey, it's another player's name, not a duplicate. You have to hide it if the other player is out of camera view. Why the code is not correct in the tutorial I've explained in this thread.0
-
develax
targetRenderer = this.target.GetComponent();
What is the name of the script, where is this line?
i can't find her0 -
So this error turns out, why not fix it?
In order not to be misleading0 -
There is a link to a page with this script in my original post, just scroll down a bit.btckey said:
targetRenderer = this.target.GetComponent();
What is the name of the script, where is this line?
i can't find her
I reported the error just a few days ago. Probably they haven't had time to check it and make corrections.btckey said:
So this error turns out, why not fix it?
In order not to be misleading0 -
develax
Here is your message
https://forum.photonengine.com/discussion/14256/pun-basics-tutorial-9-player-ui-prefab
where did you find this // targetRenderer = this.target.GetComponent (); //, as the script is called0 -
Why are the developers silent, this is an obvious mistake?0
-
There is a link in my message to their tutorial with the code you're looking for:btckey said:develax
Here is your message
https://forum.photonengine.com/discussion/14256/pun-basics-tutorial-9-player-ui-prefab
where did you find this // targetRenderer = this.target.GetComponent (); //, as the script is called
https://doc.photonengine.com/en-us/pun/v2/demos-and-tutorials/pun-basics-tutorial/player-ui-prefab#following_the_target_player
P.S.
It should have been written with <Renderer> but this forum does not allow to put angle brackets in an easy way.0 -
develax
Thanks I will study0 -
Hi,
Ok, indeed, that part of the code is not right, we'll update this for the next release of PUN, thanks for spotting this!
Bye,
Jean0