Skip to content

PartManager

Tommo J. Phillips edited this page Oct 22, 2023 · 2 revisions

PartManager

Namespace: TommoJProductions.ModApi.Attachable

Represents the Parts Manager. Handles Part AutoSave, Drop, Throw and Pick up Logic.

public class PartManager

Inheritance ObjectPartManager

Properties

inherentlyPickedParts

All parts that were set in . Reps all Part children in root PartManager.pickedPart.

public Part[] inherentlyPickedParts { get; }

Property Value

Part[]

pickedPart

The root picked part. the part that the player is currently holding.

public Part pickedPart { get; }

Property Value

Part

pickedObject

The picked object. the object that the player is currently holding.

public GameObject pickedObject { get; }

Property Value

GameObject

cardboardBoxPrefab

The Cardboard Box prefab.

public GameObject cardboardBoxPrefab { get; }

Property Value

GameObject

foldingBoxPrefab

The Folding Cardboard Box prefab.

public GameObject foldingBoxPrefab { get; }

Property Value

GameObject

cratePrefab

The Wooden Crate prefab.

public GameObject cratePrefab { get; }

Property Value

GameObject

matrixUIPrefab

The Matrix UI prefab.

public GameObject matrixUIPrefab { get; }

Property Value

GameObject

assetsLoaded

Represents if part assets have been loaded.

public bool assetsLoaded { get; }

Property Value

Boolean

Constructors

PartManager()

public PartManager()

Methods

load(AssetBundle)

internal void load(AssetBundle assetBundle)

Parameters

assetBundle AssetBundle

Clone this wiki locally