Photon Bolt Engine API
Networking Middleware
Public Attributes | Properties | List of all members
Bolt.CachedObject< T > Struct Template Reference

Utility struct for caching a unity component globally as a field on a class More...

Public Attributes

component
 
float lastCheck
 

Properties

bool Exists [get]
 Returns false if the component is currently null More...
 
Component [get]
 Returns the cached component More...
 

Detailed Description

Utility struct for caching a unity component globally as a field on a class

Template Parameters
TThe component type
Type Constraints
T :Component 

Member Data Documentation

◆ component

T Bolt.CachedObject< T >.component

◆ lastCheck

float Bolt.CachedObject< T >.lastCheck

Property Documentation

◆ Component

T Bolt.CachedObject< T >.Component
get

Returns the cached component

◆ Exists

bool Bolt.CachedObject< T >.Exists
get

Returns false if the component is currently null