Tanoda
LeapBlendShapeFeature.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
9using System;
10using UnityEngine;
11
13
14 [LeapGraphicTag("Blend Shape", 40)]
15 [Serializable]
16 public class LeapBlendShapeFeature : LeapGraphicFeature<LeapBlendShapeData> {
17 public const string FEATURE_NAME = LeapGraphicRenderer.FEATURE_PREFIX + "BLEND_SHAPES";
18
21 return SupportInfo.Error("Blend shapes require a renderer that supports mesh graphics.");
22 } else {
23 return SupportInfo.FullSupport();
24 }
25 }
26 }
27}
override SupportInfo GetSupportInfo(LeapGraphicGroup group)
LeapRenderingMethod renderingMethod
Gets the rendering method used for this group. This can only be changed at edit time using either the...
This class is a base class for all graphics that can be represented by a mesh object.
abstract bool IsValidGraphic(LeapGraphic graphic)
The support info class provides a very basic way to notify that something is fully supported,...
Definition: SupportInfo.cs:21
static SupportInfo Error(string message)
Helper getter to return a struct that signifies no support with an error message.
Definition: SupportInfo.cs:42
static SupportInfo FullSupport()
Helper getter to return a struct that signifies full support.
Definition: SupportInfo.cs:28