Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/******************************************************************************
* Copyright (C) Leap Motion, Inc. 2011-2018. *
* Leap Motion proprietary and confidential. *
* *
* Use subject to the terms of the Leap Motion SDK Agreement available at *
* https://developer.leapmotion.com/sdk_agreement, or another agreement *
* between Leap Motion and you, your company or other organization. *
******************************************************************************/
using System;
using UnityEngine;
namespace Leap.Unity.GraphicalRenderer {
[LeapGraphicTag("Blend Shape", 40)]
[Serializable]
public class LeapBlendShapeFeature : LeapGraphicFeature<LeapBlendShapeData> {
public const string FEATURE_NAME = LeapGraphicRenderer.FEATURE_PREFIX + "BLEND_SHAPES";
public override SupportInfo GetSupportInfo(LeapGraphicGroup group) {
if (!group.renderingMethod.IsValidGraphic<LeapMeshGraphicBase>()) {
return SupportInfo.Error("Blend shapes require a renderer that supports mesh graphics.");
} else {
return SupportInfo.FullSupport();
}
}
}
}
2046045a2This file is pinned to the selected release. Download the original to open it in your design tool.