protected override void OnToolbar()
    {
        base.OnToolbar();

        if (GUILayout.Button("New Gesture Template"))
        {
            PointCloudGestureTemplate template = FingerGesturesEditorUtils.CreateAsset <PointCloudGestureTemplate>();
            Gesture.Templates.Add(template);
        }
    }
Ejemplo n.º 2
0
    public void EventMessageToolbarButton(string label, string eventName)
    {
        bool ret = GUILayout.Button(label);

        if (ret)
        {
            string value = string.Format("void {0}({1} e)", eventName, Detector.GetEventType().Name);
            value += @" { /* your code here */ }";
            FingerGesturesEditorUtils.SetClipboard(value);
//            Debug.Log( value );
        }
    }
    public static void CreatePointCloudGesture()
    {
        PointCloudGestureTemplate template = FingerGesturesEditorUtils.CreateAsset <PointCloudGestureTemplate>();

        FingerGesturesEditorUtils.SelectAssetInProjectView(template);
    }
    public static void CreateCustomGesture()
    {
        CustomGestureTemplate template = FingerGesturesEditorUtils.CreateAsset <CustomGestureTemplate>();

        FingerGesturesEditorUtils.SelectAssetInProjectView(template);
    }