OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
LaserMovableWithOutline.cs
Go to the documentation of this file.
1
using
Autohand;
2
using
JJKeller;
3
using
UnityEngine;
4
5
namespace
PixoVR.Event
6
{
7
public
class
LaserMovableWithOutline
:
LaserMovable
8
{
9
[SerializeField]
private
Outline
_highlightOutline
;
10
[SerializeField]
private
Color
_targetingColor
;
11
[SerializeField]
private
Color
_pullingColor
;
12
13
public
override
void
Awake
()
14
{
15
base.Awake();
16
_highlightOutline.enabled =
false
;
17
}
18
19
public
override
void
StartTargeting
()
20
{
21
base.StartTargeting();
22
_highlightOutline.enabled =
true
;
23
_highlightOutline.OutlineColor =
_targetingColor
;
24
}
25
26
public
override
void
StopTargeting
()
27
{
28
base.StopTargeting();
29
_highlightOutline.enabled =
false
;
30
}
31
32
public
override
void
OnTriggerGrab
(Hand hand, Grabbable grabbable)
33
{
34
base.OnTriggerGrab(hand, grabbable);
35
if
(
IsPulling
)
36
{
37
_highlightOutline.OutlineColor =
_pullingColor
;
38
}
39
}
40
41
public
override
void
OnTriggerReleased
(Hand hand, Grabbable grabbable)
42
{
43
base.OnTriggerReleased(hand, grabbable);
44
_highlightOutline.OutlineColor =
_targetingColor
;
45
}
46
}
47
}
LaserMovable
Definition
LaserMovable.cs:21
LaserMovable.IsPulling
bool IsPulling
Definition
LaserMovable.cs:47
PixoVR.Event.LaserMovableWithOutline
Definition
LaserMovableWithOutline.cs:8
PixoVR.Event.LaserMovableWithOutline.OnTriggerGrab
override void OnTriggerGrab(Hand hand, Grabbable grabbable)
Definition
LaserMovableWithOutline.cs:41
PixoVR.Event.LaserMovableWithOutline.OnTriggerReleased
override void OnTriggerReleased(Hand hand, Grabbable grabbable)
Definition
LaserMovableWithOutline.cs:50
PixoVR.Event.LaserMovableWithOutline._pullingColor
Color _pullingColor
[SerializeField]
Definition
LaserMovableWithOutline.cs:20
PixoVR.Event.LaserMovableWithOutline._highlightOutline
Outline _highlightOutline
[SerializeField]
Definition
LaserMovableWithOutline.cs:12
PixoVR.Event.LaserMovableWithOutline._targetingColor
Color _targetingColor
[SerializeField]
Definition
LaserMovableWithOutline.cs:16
PixoVR.Event.LaserMovableWithOutline.StartTargeting
override void StartTargeting()
Definition
LaserMovableWithOutline.cs:28
PixoVR.Event.LaserMovableWithOutline.StopTargeting
override void StopTargeting()
Definition
LaserMovableWithOutline.cs:35
PixoVR.Event.LaserMovableWithOutline.Awake
override void Awake()
Definition
LaserMovableWithOutline.cs:22
PixoVR.Event
Definition
ItemIDAttribute.cs:5
com.pixovr.eventunitysdk
Runtime
Sdk
Scripts
LaserMovableWithOutline.cs
Generated
Wed Oct 9 2024 19:24:03
by Doxygen version
1.10.0