Photon Unity Networking 2  2.8
English | 日本語 | 한국
Properties | List of all members
MonoBehaviourPun Class Reference

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

Inherits MonoBehaviour.

Inherited by MonoBehaviourPunCallbacks, MoveByKeys, OnClickDestroy, OnClickRpc, and SmoothSyncMovement.

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
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.