- 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 |
void |
This method allows to change the piece appearance.
|
ChangeState |
void |
This method allows to change the piece state (Queue, Preview, Edit, Remove, Placed).
|
Check |
bool |
This method allows check all the condition(s) before destruction.
|
Check |
bool |
This method allow check all the condition(s) before edition.
|
Check |
bool |
This method allows check all the condition(s) before placement.
|
DisableAllColliders |
void |
This method allows to disable all the colliders of this piece.
|
Disable |
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.
|
Enable |
void |
This method allows to enable all the colliders of this piece.
|
LinkPart |
void |
This method allows to link a piece at this piece.
|
UnlinkPart |
void |
This method allows to unlink a piece at this piece.
|
UpdateOccupancy |
void |
This method allows to change the state of the sockets that collide the mesh bounds to avoid multiple placement.
|