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.

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.

photonView.IsMine

Persian99
2019-12-12 00:15:03

Hi there,

I feel kinda dumb asking this but I think that "photonView.IsMine" is not working, at least is not working on my project. I'm following step by step the tutorial from the documentation and I got stuck in this part when you check the others beams and check the player health. When I get to add it into OnTriggerEnter and OnTriggerStay method I get an error, it shows like if I wrote it wrong. I've been looking at the whole script for two hours and I can't find what's wrong.

I would really appreciate it if you could help me.

Here's a link to a screenshot I took from the script (I couldn't figure out how to upload a picture here so I uploaded to Google Drive):

https://drive.google.com/open?id=1JXYEKxstXN2HkxptSvGKr2m03sXTM2_j

Also, I'll leave de PlayerManager script I have:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;

namespace Com.JmJdProd.Murderer
{

public class PlayerManager : MonoBehaviour
{
#region Private Fields

}
}

Comments

jwehr
2019-12-12 17:39:30

I have the same issue. People have been asking about this over and over. Could someone address it?

jwehr
2019-12-12 18:13:44

This question has been answered, but for whatever reason, they don't update the tutorial. Remove the check for photonview.ismine and just ProcessInputs(); You will add the check in the next section properly.

JohnTube
2019-12-12 18:34:04

Hi @Persian99, @jwehr,

Thank you for choosing Photon!

Documentation page update done.

Sorry for the inconvenience.

Thanks you for your patience and understanding.

Persian99
2019-12-13 21:59:17

@JohnTube and @jwehr

Thanks for answering, I just realized I missed something really important in the script ( 'MonoBehaviourPunCallBacks)

Anyway, I really appreciate you took your time to answer.

Thanks again and hope you have happy holidays.

Back to top