Network Variable Callbacks #405
kurozael
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
You can now get a notification when a [Net] property has changed clientside. This is useful if you want to update something in the UI, or run some other logic when the variable changes on the client without having to poll for changes frequently.
Supported Types
Entity
,NetworkComponent
,string
,bool
,byte
,sbyte
,char
,double
,float
,int
,uint
,long
,ulong
,short
,ushort
Lists
Any
List<T>
is supported whereT
is any of the following:Entity
,string
,bool
,byte
,sbyte
,char
,double
,float
,int
,uint
,long
,ulong
,short
,ushort
Usage
[OnChangedCallback]
attribute to your[Net]
property.Entity
orNetworkComponent
calledOn[PropertyName]Changed()
where[PropertyName]
is the name of your[Net]
property.Example
Beta Was this translation helpful? Give feedback.
All reactions