PieceBehaviour Class

Namespace
EasyBuildSystem.Features.Scripts.Core.Base.Piece
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["PieceBehaviour"] class Type type-node

Syntax

[AddComponentMenu("Easy Build System/Features/Buildings Behaviour/Piece Behaviour")]
public class PieceBehaviour : MonoBehaviour

Attributes

Type Description
AddComponentMenu

Fields

Properties

Name Value Summary
EntityInstanceId int
HasGroup bool
LastState StateType
MeshBoundsToWorld Bounds
PreviewMaterial Material

Methods

Name Value Summary
ChangeAppearance(int) void
This method allows to change the piece appearance.
ChangeState(StateType) void
This method allows to change the piece state (Queue, Preview, Edit, Remove, Placed).
CheckDestructionConditions() bool
This method allows check all the condition(s) before destruction.
CheckEditionConditions() bool
This method allow check all the condition(s) before edition.
CheckPlacementConditions() bool
This method allows check all the condition(s) before placement.
DisableAllColliders() void
This method allows to disable all the colliders of this piece.
DisableAllCollidersTrigger() void
This method allows to disable all the colliders of this piece.
EnableAllColliders() void
This method allows to enable all the colliders of this piece.
EnableAllCollidersTrigger() void
This method allows to enable all the colliders of this piece.
LinkPart(PieceBehaviour) void
This method allows to link a piece at this piece.
UnlinkPart(PieceBehaviour) void
This method allows to unlink a piece at this piece.
UpdateOccupancy(bool) void
This method allows to change the state of the sockets that collide the mesh bounds to avoid multiple placement.