Skip to content

NetLocalAttribute

namespace Griff.Scenes;
public sealed class NetLocalAttribute : Attribute

Each machine in a network game keeps its own copy of an entity with this component: a camera, the HUD, a menu, the music. Nothing on it is sent, and it follows that machine’s own player. A Networked component’s Sync overrides it.

public static bool IsOn(Component component)

True if component’s type is marked.

public static bool IsOn(Entity entity)

True if one of entity’s components is marked.