Photon Quantum 3.0.0

Public Member Functions | Properties | List of all members
Quantum.IQuantumViewComponent Interface Reference

The interface that the QuantumEntityViewUpdater uses to control the view components (QuantumViewComponent<T>). More...

Inheritance diagram for Quantum.IQuantumViewComponent:
Quantum.QuantumViewComponent< T > Quantum.QuantumEntityViewComponent< T > Quantum.QuantumSceneViewComponent< T >

Public Member Functions

void Activate (Frame frame, QuantumGame game, QuantumEntityView entityView)
 Is called when the entity view is activated after being created or reused from the pool. More...
 
void Deactivate ()
 Is called when the entity view is destroyed or returned to the pool. More...
 
void GameChanged (QuantumGame game)
 Is called when the game has changed in the QuantumEntityViewUpdater. More...
 
void Initialize (Dictionary< Type, IQuantumViewContext > contexts)
 Is called when the entity view is enabled for the first time. More...
 
void LateUpdateView ()
 Is call on all entity views Unity late update. More...
 
void UpdateView ()
 Is called when the entity view is updated from the Unity update loop. More...
 

Properties

bool IsActive [get]
 Is toggled during Activate and Deactivate."/> More...
 

Detailed Description

The interface that the QuantumEntityViewUpdater uses to control the view components (QuantumViewComponent<T>).

Member Function Documentation

◆ Initialize()

void Quantum.IQuantumViewComponent.Initialize ( Dictionary< Type, IQuantumViewContext contexts)

Is called when the entity view is enabled for the first time.

Parameters
contextsAll view contexts

Implemented in Quantum.QuantumViewComponent< T >.

◆ Activate()

void Quantum.IQuantumViewComponent.Activate ( Frame  frame,
QuantumGame  game,
QuantumEntityView  entityView 
)

Is called when the entity view is activated after being created or reused from the pool.

Parameters
frameFrame
gameQuantum game
entityViewAssociated entity view

Implemented in Quantum.QuantumViewComponent< T >.

◆ Deactivate()

void Quantum.IQuantumViewComponent.Deactivate ( )

Is called when the entity view is destroyed or returned to the pool.

Implemented in Quantum.QuantumViewComponent< T >.

◆ UpdateView()

void Quantum.IQuantumViewComponent.UpdateView ( )

Is called when the entity view is updated from the Unity update loop.

Implemented in Quantum.QuantumViewComponent< T >.

◆ LateUpdateView()

void Quantum.IQuantumViewComponent.LateUpdateView ( )

Is call on all entity views Unity late update.

Implemented in Quantum.QuantumViewComponent< T >.

◆ GameChanged()

void Quantum.IQuantumViewComponent.GameChanged ( QuantumGame  game)

Is called when the game has changed in the QuantumEntityViewUpdater.

Parameters
game

Implemented in Quantum.QuantumViewComponent< T >.

Property Documentation

◆ IsActive

bool Quantum.IQuantumViewComponent.IsActive
get

Is toggled during Activate and Deactivate."/>