Interface: IInteractable
- Namespace:
Global - Assembly:
Dew.Core.dll
csharp
public interface IInteractableProperties
| Name | Declaration | Description |
|---|---|---|
canInteractWithMouse | bool canInteractWithMouse { get; } | |
focusDistance | float focusDistance { get; } | |
interactPivot | Transform interactPivot { get; } | |
priority | int priority { get; } | Lower values are prioritized |
Methods
CanInteract(Entity)
Can this object be interacted by given entity? Checked everywhere, hence this should return consistent results regardless of caller.
csharp
bool CanInteract(Entity entity)Parameters:
| Name | Type | Description |
|---|---|---|
entity | Entity |
Returns: bool
OnInteract(Entity, bool)
Called everywhere when an entity interacts with an interactable.
csharp
void OnInteract(Entity entity, bool alt)Parameters:
| Name | Type | Description |
|---|---|---|
entity | Entity | |
alt | bool |