Class BuildEventArgs
Event arguments for building-related events. Provides access to the item being built and the resulting GameObject.
public class BuildEventArgs
- Inheritance
-
BuildEventArgs
- Inherited Members
- Extension Methods
Properties
GameObject
The GameObject created in the world. Use this to customize appearance, add components, or modify materials.
public GameObject GameObject { get; }
Property Value
- GameObject
ItemId
The item definition ID. Convenience property for filtering events by item type.
public string ItemId { get; }
Property Value
ItemInstance
The item instance that was built.
public ItemInstance ItemInstance { get; }
Property Value
Storage
The storage entity if this item is a storage container. Returns null if the item is not a storage container.
public StorageEntity Storage { get; }
Property Value
Remarks
Use this to customize storage properties when items are placed. Example: args.Storage?.AddSlots(5);