-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update NRSDK 1.8; Release of Version 1.1.2
- Loading branch information
Showing
96 changed files
with
3,205 additions
and
1,383 deletions.
There are no files selected for viewing
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
37 changes: 37 additions & 0 deletions
37
Nreal/Assets/NRSDK/Demos/Input/Scripts/NRInteractiveItem.cs
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,37 @@ | ||
/**************************************************************************** | ||
* Copyright 2019 Nreal Techonology Limited. All rights reserved. | ||
* | ||
* This file is part of NRSDK. | ||
* | ||
* https://www.nreal.ai/ | ||
* | ||
*****************************************************************************/ | ||
|
||
namespace NRKernal.NRExamples | ||
{ | ||
using UnityEngine; | ||
using UnityEngine.Events; | ||
using UnityEngine.EventSystems; | ||
|
||
public class NRInteractiveItem : MonoBehaviour, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler | ||
{ | ||
public UnityEvent onPointerClick; | ||
public UnityEvent onPointerEnter; | ||
public UnityEvent onPointerOut; | ||
|
||
public void OnPointerClick(PointerEventData eventData) | ||
{ | ||
onPointerClick?.Invoke(); | ||
} | ||
|
||
public void OnPointerEnter(PointerEventData eventData) | ||
{ | ||
onPointerEnter?.Invoke(); | ||
} | ||
|
||
public void OnPointerExit(PointerEventData eventData) | ||
{ | ||
onPointerOut?.Invoke(); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Nreal/Assets/NRSDK/Demos/Input/Scripts/NRInteractiveItem.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.