PunBasics-Tutorial error

Options
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

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    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.
  • btckey
    btckey
    edited July 2019
    Options
    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 duplicated
  • btckey
    btckey
    edited July 2019
    Options
    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?
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    This is a UI / Canvas issue.
    You need to adjust it.
    There are no duplicate names, you just see something you should not see.
  • btckey
    Options
    I did not understand you, please describe in more detail what should I do to not see duplicate names.
    Thank
  • develax
    develax ✭✭
    edited July 2019
    Options
    @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.
  • btckey
    btckey
    edited July 2019
    Options
    develax

    targetRenderer = this.target.GetComponent();

    What is the name of the script, where is this line?
    i can't find her
  • btckey
    btckey
    edited July 2019
    Options
    So this error turns out, why not fix it?
    In order not to be misleading
  • develax
    Options
    btckey said:


    targetRenderer = this.target.GetComponent();

    What is the name of the script, where is this line?
    i can't find her

    There is a link to a page with this script in my original post, just scroll down a bit.
    btckey said:


    So this error turns out, why not fix it?
    In order not to be misleading

    I reported the error just a few days ago. Probably they haven't had time to check it and make corrections.
  • btckey
    btckey
    edited July 2019
    Options
    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
  • btckey
    Options
    Why are the developers silent, this is an obvious mistake?
  • develax
    develax ✭✭
    edited July 2019
    Options
    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

    There is a link in my message to their tutorial with the code you're looking for:
    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.
  • btckey
    btckey
    edited July 2019
    Options
    develax
    Thanks I will study
  • jeanfabre
    Options
    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,

    Jean