Photon Unity Networking v1.101

Classes | Enumerations
PhotonView.cs File Reference

Classes

class  PhotonView
 PUN's NetworkView replacement class for networking. Use it like a NetworkView. More...
 

Enumerations

enum  ViewSynchronization { ViewSynchronization.Off, ViewSynchronization.ReliableDeltaCompressed, ViewSynchronization.Unreliable, ViewSynchronization.UnreliableOnChange }
 
enum  OnSerializeTransform {
  OnSerializeTransform.OnlyPosition, OnSerializeTransform.OnlyRotation, OnSerializeTransform.OnlyScale, OnSerializeTransform.PositionAndRotation,
  OnSerializeTransform.All
}
 
enum  OnSerializeRigidBody { OnSerializeRigidBody.OnlyVelocity, OnSerializeRigidBody.OnlyAngularVelocity, OnSerializeRigidBody.All }
 
enum  OwnershipOption { OwnershipOption.Fixed, OwnershipOption.Takeover, OwnershipOption.Request }
 Options to define how Ownership Transfer is handled per PhotonView. More...
 

Enumeration Type Documentation

◆ OnSerializeRigidBody

enum OnSerializeRigidBody
strong
Enumerator
OnlyVelocity 
OnlyAngularVelocity 
All 

◆ OnSerializeTransform

enum OnSerializeTransform
strong
Enumerator
OnlyPosition 
OnlyRotation 
OnlyScale 
PositionAndRotation 
All 

◆ OwnershipOption

enum OwnershipOption
strong

Options to define how Ownership Transfer is handled per PhotonView.

This setting affects how RequestOwnership and TransferOwnership work at runtime.

Enumerator
Fixed 

Ownership is fixed. Instantiated objects stick with their creator, scene objects always belong to the Master Client.

Takeover 

Ownership can be taken away from the current owner who can't object.

Request 

Ownership can be requested with PhotonView.RequestOwnership but the current owner has to agree to give up ownership.

The current owner has to implement IPunCallbacks.OnOwnershipRequest to react to the ownership request.

◆ ViewSynchronization

enum ViewSynchronization
strong
Enumerator
Off 
ReliableDeltaCompressed 
Unreliable 
UnreliableOnChange