Skip to content

Class: DewNetworkBehaviour ​

csharp
public class DewNetworkBehaviour : NetworkBehaviour, ILogicUpdate

Methods ​

Awake() ​

csharp
protected virtual void Awake()

FrameUpdate() ​

csharp
public virtual void FrameUpdate()

FxApplySpeedMultiplier(GameObject, float) ​

Change speed of an effect, affecting ParticleSystems and IEffectWithSpeed inheritors.

csharp
public void FxApplySpeedMultiplier(GameObject effect, float multiplier)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
multiplierfloat

FxApplySpeedMultiplierNetworked(GameObject, float) ​

Change speed of an effect, affecting ParticleSystems and IEffectWithSpeed inheritors.

csharp
public void FxApplySpeedMultiplierNetworked(GameObject effect, float multiplier)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
multiplierfloat

FxPlay(GameObject, Entity, Vector3, Quaternion?) ​

Play effect locally attached to given entity, positioned.

csharp
public void FxPlay(GameObject effect, Entity attach, Vector3 position, Quaternion? rotation)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
attachEntity
positionUnityEngine.Vector3
rotationUnityEngine.Quaternion?

FxPlay(GameObject, Entity) ​

Play effect locally attached to given entity.

csharp
public void FxPlay(GameObject effect, Entity attach)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
attachEntity

FxPlay(GameObject, Vector3, Quaternion?) ​

Play effect locally at given position.

csharp
public void FxPlay(GameObject effect, Vector3 position, Quaternion? rotation)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
positionUnityEngine.Vector3
rotationUnityEngine.Quaternion?

FxPlay(GameObject) ​

Play effect locally.

csharp
public void FxPlay(GameObject effect)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject

FxPlayNetworked(GameObject, Entity, Vector3, Quaternion?) ​

Play effect everywhere attached to given entity, positioned. Only callable in server.

csharp
public void FxPlayNetworked(GameObject effect, Entity entity, Vector3 position, Quaternion? rotation)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
entityEntity
positionUnityEngine.Vector3
rotationUnityEngine.Quaternion?

FxPlayNetworked(GameObject, Entity) ​

Play effect everywhere attached to given entity. Only callable in server.

csharp
public void FxPlayNetworked(GameObject effect, Entity entity)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
entityEntity

FxPlayNetworked(GameObject, Vector3, Quaternion?) ​

Play effect everywhere. Only callable in server.

csharp
public void FxPlayNetworked(GameObject effect, Vector3 position, Quaternion? rotation)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
positionUnityEngine.Vector3
rotationUnityEngine.Quaternion?

FxPlayNetworked(GameObject) ​

Play effect everywhere. Only callable in server.

csharp
public void FxPlayNetworked(GameObject effect)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject

FxPlayNew(GameObject, Entity, Vector3, Quaternion?) ​

Instantiate and play effect locally attached to given entity, positioned.

csharp
public void FxPlayNew(GameObject effect, Entity attach, Vector3 position, Quaternion? rotation)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
attachEntity
positionUnityEngine.Vector3
rotationUnityEngine.Quaternion?

FxPlayNew(GameObject, Entity) ​

Instantiate and play effect locally attached to given entity.

csharp
public void FxPlayNew(GameObject effect, Entity attach)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
attachEntity

FxPlayNew(GameObject, Vector3, Quaternion?) ​

Instantiate and play effect locally at given position.

csharp
public void FxPlayNew(GameObject effect, Vector3 position, Quaternion? rotation)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
positionUnityEngine.Vector3
rotationUnityEngine.Quaternion?

FxPlayNew(GameObject) ​

Instantiate and play effect locally.

csharp
public void FxPlayNew(GameObject effect)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject

FxPlayNewNetworked(GameObject, Entity, Vector3, Quaternion?) ​

Instantiate and play effect everywhere attached to given entity, positioned. Only callable in server.

csharp
public void FxPlayNewNetworked(GameObject effect, Entity entity, Vector3 position, Quaternion? rotation)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
entityEntity
positionUnityEngine.Vector3
rotationUnityEngine.Quaternion?

FxPlayNewNetworked(GameObject, Entity) ​

Instantiate and play effect everywhere attached to given entity. Only callable in server.

csharp
public void FxPlayNewNetworked(GameObject effect, Entity entity)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
entityEntity

FxPlayNewNetworked(GameObject, Vector3, Quaternion?) ​

Instantiate and play effect everywhere at given position. Only callable in server.

csharp
public void FxPlayNewNetworked(GameObject effect, Vector3 position, Quaternion? rotation)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject
positionUnityEngine.Vector3
rotationUnityEngine.Quaternion?

FxPlayNewNetworked(GameObject) ​

Instantiate and play effect everywhere. Only callable in server.

csharp
public void FxPlayNewNetworked(GameObject effect)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject

FxStop(GameObject) ​

Stop effect locally.

csharp
public void FxStop(GameObject effect)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject

FxStopNetworked(GameObject) ​

Stop effect everywhere. Only callable in server. Use non-networked variant in DewEffect if you want to stop effect locally.

csharp
public void FxStopNetworked(GameObject effect)

Parameters:

NameTypeDescription
effectUnityEngine.GameObject

GetComponent<T>(out T) ​

csharp
protected void GetComponent<T>(out T comp)

Parameters:

NameTypeDescription
compT
``T

InvalidateInstance() ​

Invalidate an instance from pool, preventing it from being reused.

csharp
public void InvalidateInstance()

LogicUpdate(float) ​

csharp
public virtual void LogicUpdate(float dt)

Parameters:

NameTypeDescription
dtfloat

OnDestroy() ​

csharp
protected virtual void OnDestroy()

OnLateStart() ​

csharp
public virtual void OnLateStart()

OnLateStartServer() ​

csharp
public virtual void OnLateStartServer()

OnStart() ​

csharp
public virtual void OnStart()

OnStartClient() ​

csharp
public override void OnStartClient()

OnStartServer() ​

csharp
public override void OnStartServer()

OnStop() ​

csharp
public virtual void OnStop()

OnStopClient() ​

csharp
public override void OnStopClient()

OnStopServer() ​

csharp
public override void OnStopServer()

Maintained by the Shape of Dreams Modding Community