Class CustomPrefab
Wrapper for custom added GameObjects holding the mod reference.
Implements
Inherited Members
Namespace: Jotunn.Entities
Assembly: Jotunn.dll
Syntax
public class CustomPrefab : CustomEntity, IModPrefab
Constructors
| Name | Description |
|---|---|
| CustomPrefab(AssetBundle, string, bool) | Custom prefab loaded from an AssetBundle. Can fix references for Mock<T>s. |
| CustomPrefab(GameObject, bool) | Custom prefab. Can fix references for Mock<T>s. |
Properties
| Name | Description |
|---|---|
| FixReference | Indicator if references from Mock<T>s will be replaced at runtime. |
| Prefab | Original prefab |
Methods
| Name | Description |
|---|---|
| IsCustomPrefab(string) | Helper method to determine if a prefab with a given name is a custom prefab created with Jötunn. |
| IsValid() | Checks if a custom item is valid (i.e. has a prefab, an ItemDrop and an icon, if it should be craftable). |
| ToString() | Returns a string that represents the current object. |