Photon.Pun.MonoBehaviourPun Class Reference

This class adds the property photonView, while logging a warning when your game still uses the networkView. More...

Inheritance diagram for Photon.Pun.MonoBehaviourPun:
Photon.Pun.Demo.PunBasics.PlayerAnimatorManager Photon.Pun.Demo.SlotRacer.PlayerControl Photon.Pun.MonoBehaviourPunCallbacks Photon.Pun.PhotonAnimatorView Photon.Pun.PhotonRigidbody2DView Photon.Pun.PhotonRigidbodyView Photon.Pun.PhotonTransformView Photon.Pun.PhotonTransformViewClassic Photon.Pun.UtilityScripts.MoveByKeys Photon.Pun.UtilityScripts.OnClickDestroy Photon.Pun.UtilityScripts.OnClickRpc Photon.Pun.UtilityScripts.SmoothSyncMovement Player

Properties

PhotonView photonView [get]
 A cached reference to a PhotonView on this GameObject. More...
 

Detailed Description

This class adds the property photonView, while logging a warning when your game still uses the networkView.

Property Documentation

◆ photonView

PhotonView Photon.Pun.MonoBehaviourPun.photonView
get

A cached reference to a PhotonView on this GameObject.

If you intend to work with a PhotonView in a script, it's usually easier to write this.photonView.

If you intend to remove the PhotonView component from the GameObject but keep this Photon.MonoBehaviour, avoid this reference or modify this code to use PhotonView.Get(obj) instead.


The documentation for this class was generated from the following file: