-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce IInteractorVisualizer and implement foundation for separati…
…ng visualization from interactor logic (#132) * Define IInteractorVisualizer * Define BaseInteractorVisualizer * Begin setup of line interactor visualizer * Extract far interactor visualizer
- Loading branch information
Showing
17 changed files
with
889 additions
and
560 deletions.
There are no files selected for viewing
515 changes: 148 additions & 367 deletions
515
Assets~/StandardAssets/Interactors/FarInteractor.prefab
Large diffs are not rendered by default.
Oops, something went wrong.
405 changes: 405 additions & 0 deletions
405
Assets~/StandardAssets/Interactors/LineInteractorVisualizer.prefab
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
Assets~/StandardAssets/Interactors/LineInteractorVisualizer.prefab.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) Reality Collective. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using UnityEngine; | ||
|
||
namespace RealityToolkit.Input.Interactors | ||
{ | ||
public abstract class BaseInteractorVisualizer : MonoBehaviour, IInteractorVisualizer | ||
{ | ||
/// <inheritdoc /> | ||
public virtual IInteractor Interactor { get; set; } | ||
|
||
/// <inheritdoc /> | ||
public virtual void OnPreRaycast() { } | ||
|
||
/// <inheritdoc /> | ||
public virtual void OnPostRaycast() { } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Runtime/Input/Interactors/BaseInteractorVisualizer.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.