Photon Fusion 2.0.4

Public Member Functions | Properties | List of all members
RenderAttribute Class Reference

Override default render settings for [Networked] properties. More...

Inherits Attribute.

Public Member Functions

 RenderAttribute ()
 Default constructor for RenderAttribute More...
 
 RenderAttribute (RenderTimeframe timeframe, RenderSource source)
 RenderAttribute Constructor More...
 

Properties

string Method [get, set]
 
RenderSource Source [get, set]
 
RenderTimeframe Timeframe [get, set]
 

Detailed Description

Override default render settings for [Networked] properties.

Constructor & Destructor Documentation

◆ RenderAttribute() [1/2]

Default constructor for RenderAttribute

◆ RenderAttribute() [2/2]

RenderAttribute ( RenderTimeframe  timeframe,
RenderSource  source 
)

RenderAttribute Constructor

Parameters
timeframeRenderTimeframe reference
sourceRenderSource reference

Property Documentation

◆ Method

string Method
getset

Override the default interpolation method for this property. The method's signature must match:

static T MethodName(T from, T to, float alpha) { /* ... *‍/ }

◆ Source

RenderSource Source
getset

Force this property to be rendered using this RenderSource (in the chosen RenderTimeframe).

This setting is prioritized over NetworkBehaviour and NetworkObject overrides.

◆ Timeframe

RenderTimeframe Timeframe
getset

Force this property to be rendered in this RenderTimeframe.

This setting is prioritized over NetworkBehaviour and NetworkObject overrides.