BuilderBehaviour Class

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

Syntax

[RequireComponent(typeof(Camera), typeof(BuilderDesktopInput))]
[DefaultExecutionOrder(999)]
[AddComponentMenu("Easy Build System/Features/Builders Behaviour/Builder Behaviour")]
public class BuilderBehaviour : MonoBehaviour

Attributes

Type Description
RequireComponent
DefaultExecutionOrder
AddComponentMenu

Fields

Properties

Methods

Name Value Summary
Awake() void
ChangeMode(BuildMode) void
This method allows to change mode.
ChangeMode(string) void
This method allows to change mode.
CheckInternalConditions() bool
This method allows to check the preview condition (build surface, require socket, build distance).
ClearEditionPreview() void
This method allows to clear the current edition preview.
ClearPreview() void
This method allows to clear the current preview.
ClearRemovePreview() void
This method allows to clear the current remove preview.
CreatePreview(GameObject) PieceBehaviour
This method allows to create a preview.
DestroyPrefab() void
This method allows to remove the current preview.
EditPrefab() void
This method allows to edit the current preview.
GetTargetedPart() PieceBehaviour
This method allows to get the piece that the camera is currently looking at.
PlacePrefab(GroupBehaviour) void
This method allows to place the current preview.
RotatePreview(Vector3) void
This method allows to rotate the current preview.
SelectPrefab(PieceBehaviour) void
This method allows to select a prefab.
Start() void
Update() void
UpdateEditionPreview() void
This method allows to update the edition mode.
UpdateFreeMovement() void
This method allows to move the preview in free movement.
UpdateModes() void
This method allows to update all the builder (Placement, Destruction, Edition).
UpdateMultipleSocket(PieceBehaviour[]) void
This method allows to move the preview only on available socket(s).
UpdatePreview() void
This method allows to update the placement preview.
UpdateRemovePreview() void
This method allows to update the destruction preview.
UpdateSingleSocket(SocketBehaviour) void
This method allows to move the preview only on available socket.