Class CustomClutter
Main interface for adding custom clutter to the game.
Clutter are client side only objects scattered on the ground.
All custom clutter have to be wrapped inside this class to add it to Jötunns ZoneManager.
Clutter are client side only objects scattered on the ground.
All custom clutter have to be wrapped inside this class to add it to Jötunns ZoneManager.
Inherited Members
Namespace: Jotunn.Entities
Assembly: Jotunn.dll
Syntax
public class CustomClutter : CustomEntity
Constructors
Name | Description |
---|---|
CustomClutter(AssetBundle, string, bool, ClutterConfig) | Custom clutter from a prefab loaded from an AssetBundle. Can fix references for mocks. |
CustomClutter(GameObject, bool, ClutterConfig) | Custom clutter from a prefab. Can fix references for mocks. |
Properties
Name | Description |
---|---|
Clutter | Associated ClutterSystem.Clutter class. |
FixReference | Indicator if references from Mock<T>s will be replaced at runtime. |
Name | Name of this custom clutter. |
Prefab | The prefab for this custom clutter. |
Methods
Name | Description |
---|---|
IsValid() | Checks if a custom clutter is valid (i.e. has a prefab). |
ToString() | Returns a string that represents the current object. |