Class LocalPlayerAttribute
Prevents nonlocal players from running this method. Can only be used inside a NetworkBehaviour
Inherited Members
Show
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class LocalPlayerAttribute : Attribute, _Attribute
Fields
error
If true, when the method is called from a client, it throws an error If false, no error is thrown, but the method won't execute useful for unity built in methods such as Await, Update, Start, etc.
Declaration
public bool error