Show / Hide Table of Contents

Class CustomPrefab

Wrapper for custom added GameObjects holding the mod reference.
Inheritance
object
CustomEntity
CustomPrefab
Implements
IModPrefab
Inherited Members
CustomEntity.SourceMod
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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.

Extension Methods

PrefabExtension.FixReferences(object)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾