Table of Contents

Interface INetickScript

Namespace
Netick
Assembly
Netick.dll

A script which can be added to Netick internal simulation loop.

public interface INetickScript

Properties

Engine

NetickEngine Engine { get; }

Property Value

NetickEngine

Entity

Entity Entity { get; }

Property Value

Entity

Index

int Index { get; set; }

Property Value

int

Methods

Initialize(NetickEngine)

Used to initialize the user script and assign Engine.

void Initialize(NetickEngine netickEngine)

Parameters

netickEngine NetickEngine

NetworkDestroy()

Called when this script has been removed from the simulation.

void NetworkDestroy()

NetworkFixedUpdate()

Called every fixed-time network update/tick. Any changes/updates to the network state must happen here.

On the client, if you are the Input Source or if this Entity.PredictionMode is set to None, it will be called several times in one update/tick during resimulations. To check for resimulations, use [IsResimulating].

void NetworkFixedUpdate()

NetworkRender()

Called every frame. Executed after NetworkUpdate and NetworkFixedUpdate.

void NetworkRender()

NetworkStart()

Called when this script has been added to the simulation.

void NetworkStart()

NetworkUpdate()

Called every frame. Executed before NetworkFixedUpdate.

void NetworkUpdate()

OnBecameSimulated()

void OnBecameSimulated()

OnBecameUnsimulated()

void OnBecameUnsimulated()