- 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 | |
Default |
|
AddComponentMenu |
Fields
Properties
Name | Value | Summary |
---|---|---|
AllowDestruction | bool | |
AllowEdition | bool | |
AllowPlacement | bool | |
Current |
PieceBehaviour | |
CurrentMode | BuildMode | |
CurrentPreview | PieceBehaviour | |
CurrentRemovePreview | PieceBehaviour | |
Current |
Vector3 | |
CurrentSocket | SocketBehaviour | |
GetCaster | Transform | |
GetRay | Ray | |
HasSocket | bool | |
InitialScale | Vector3 | |
LastMode | BuildMode | |
LastSocket | SocketBehaviour | |
SelectedPrefab | PieceBehaviour |
Methods
Name | Value | Summary |
---|---|---|
Awake |
void | |
ChangeMode |
void |
This method allows to change mode.
|
ChangeMode |
void |
This method allows to change mode.
|
Check |
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 |
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 |
void |
This method allows to place the current preview.
|
RotatePreview |
void |
This method allows to rotate the current preview.
|
SelectPrefab |
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 |
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 |
void |
This method allows to move the preview only on available socket.
|