Tanoda
CustomColorChannelData.cs
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) Ultraleap, Inc. 2011-2020. *
3
* *
4
* Use subject to the terms of the Apache License 2.0 available at *
5
* http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6
* between Ultraleap and you, your company or other organization. *
7
******************************************************************************/
8
9
using
UnityEngine
;
10
using
System;
11
12
namespace
Leap.Unity.GraphicalRenderer
{
13
14
public
partial class
LeapGraphic {
15
22
public
void
SetCustomChannel
(
string
channelName,
Color
color) {
23
GetCustomChannel<CustomColorChannelData>(channelName).value = color;
24
}
25
}
26
27
[LeapGraphicTag(
"Color Channel"
)]
28
[Serializable]
29
public
class
CustomColorChannelData
:
CustomChannelDataBase
<Color> { }
30
}
Color
UnityEngine.Color Color
Definition:
TestScript.cs:32
Leap.Unity.GraphicalRenderer.CustomChannelDataBase
Definition:
CustomChannelDataBase.cs:54
Leap.Unity.GraphicalRenderer.CustomColorChannelData
Definition:
CustomColorChannelData.cs:29
Leap.Unity.GraphicalRenderer.LeapGraphic.SetCustomChannel
void SetCustomChannel(string channelName, Color color)
Helper method to set the custom channel value for the given channel name. This method will throw an e...
Definition:
CustomColorChannelData.cs:22
Leap.Unity.GraphicalRenderer
Definition:
EditorPickingMeshRebuilder.cs:12
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Plugins
LeapMotion
Legacy
GraphicRenderer
Scripts
Features
CustomChannel
Channels
CustomColorChannelData.cs
Generated by
1.9.3