Search Results for

    Show / Hide Table of Contents

    Interface IInteractable

    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    public interface IInteractable

    Properties

    canInteractWithMouse

    Declaration
    bool canInteractWithMouse { get; }
    Property Value
    Type Description
    bool

    focusDistance

    Declaration
    float focusDistance { get; }
    Property Value
    Type Description
    float

    interactPivot

    Declaration
    Transform interactPivot { get; }
    Property Value
    Type Description
    UnityEngine.Transform

    priority

    Lower values are prioritized

    Declaration
    int priority { get; }
    Property Value
    Type Description
    int

    Methods

    CanInteract(Entity)

    Can this object be interacted by given entity? Checked everywhere, hence this should return consistent results regardless of caller.

    Declaration
    bool CanInteract(Entity entity)
    Parameters
    Type Name Description
    Entity entity
    Returns
    Type Description
    bool

    OnInteract(Entity, bool)

    Called everywhere when an entity interacts with an interactable.

    Declaration
    void OnInteract(Entity entity, bool alt)
    Parameters
    Type Name Description
    Entity entity
    bool alt
    In This Article
    Back to top Shape of Dreams API Documentation