Change the line feed code [utf-8/lf]

This commit is contained in:
EnoxSoftware 2022-06-28 01:15:14 +09:00
Родитель 2efe56311c
Коммит 780f488fcb
73 изменённых файлов: 5953 добавлений и 5953 удалений

Просмотреть файл

@ -1,108 +1,108 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void DrawFaceLandmark (Mat imgMat, List<Vector2> points, Scalar color, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmArray), "points")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Scalar), "color")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmInt), "thickness")]
public class OpenCVForUnityUtils_DrawFaceLandmark : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("[arg2] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
points;
[HutongGames.PlayMaker.ActionSection ("[arg3] Scalar")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Scalar))]
public HutongGames.PlayMaker.FsmObject
color;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
imgMat = null;
points = null;
color = null;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
if (!(color.Value is OpenCVForUnityPlayMakerActions.Scalar)) {
LogError ("color is not initialized. Add Action \"newScalar\".");
return;
}
OpenCVForUnity.CoreModule.Scalar wrapped_color = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar> (color);
List<UnityEngine.Vector2> wrapped_points = new List<UnityEngine.Vector2> (points.Length);
for (int i = 0; i < points.Length; i++) {
wrapped_points.Add ((Vector2)points.Get (i));
}
OpenCVForUnityUtils.DrawFaceLandmark (wrapped_imgMat, wrapped_points, wrapped_color, thickness.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void DrawFaceLandmark (Mat imgMat, List<Vector2> points, Scalar color, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmArray), "points")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Scalar), "color")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmInt), "thickness")]
public class OpenCVForUnityUtils_DrawFaceLandmark : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("[arg2] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
points;
[HutongGames.PlayMaker.ActionSection ("[arg3] Scalar")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Scalar))]
public HutongGames.PlayMaker.FsmObject
color;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
imgMat = null;
points = null;
color = null;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
if (!(color.Value is OpenCVForUnityPlayMakerActions.Scalar)) {
LogError ("color is not initialized. Add Action \"newScalar\".");
return;
}
OpenCVForUnity.CoreModule.Scalar wrapped_color = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar> (color);
List<UnityEngine.Vector2> wrapped_points = new List<UnityEngine.Vector2> (points.Length);
for (int i = 0; i < points.Length; i++) {
wrapped_points.Add ((Vector2)points.Get (i));
}
OpenCVForUnityUtils.DrawFaceLandmark (wrapped_imgMat, wrapped_points, wrapped_color, thickness.Value);
}
}
}

Просмотреть файл

@ -1,124 +1,124 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void DrawFaceLandmark (Mat imgMat, List<Vector2> points, Scalar color, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmArray), "points")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v0")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v1")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v2")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v3")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmInt), "thickness")]
public class OpenCVForUnityUtils_DrawFaceLandmark_S : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("[arg2] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
points;
[HutongGames.PlayMaker.ActionSection ("[arg3] Scalar")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v0;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v1;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v2;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v3;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
imgMat = null;
points = null;
color_v0 = 0.0f;
color_v1 = 0.0f;
color_v2 = 0.0f;
color_v3 = 0.0f;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
List<UnityEngine.Vector2> wrapped_points = new List<UnityEngine.Vector2> (points.Length);
for (int i = 0; i < points.Length; i++) {
wrapped_points.Add ((Vector2)points.Get (i));
}
OpenCVForUnityUtils.DrawFaceLandmark (wrapped_imgMat, wrapped_points, new OpenCVForUnity.CoreModule.Scalar ((double)color_v0.Value, (double)color_v1.Value, (double)color_v2.Value, (double)color_v3.Value), thickness.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void DrawFaceLandmark (Mat imgMat, List<Vector2> points, Scalar color, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmArray), "points")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v0")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v1")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v2")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v3")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmInt), "thickness")]
public class OpenCVForUnityUtils_DrawFaceLandmark_S : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("[arg2] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
points;
[HutongGames.PlayMaker.ActionSection ("[arg3] Scalar")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v0;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v1;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v2;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v3;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
imgMat = null;
points = null;
color_v0 = 0.0f;
color_v1 = 0.0f;
color_v2 = 0.0f;
color_v3 = 0.0f;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
List<UnityEngine.Vector2> wrapped_points = new List<UnityEngine.Vector2> (points.Length);
for (int i = 0; i < points.Length; i++) {
wrapped_points.Add ((Vector2)points.Get (i));
}
OpenCVForUnityUtils.DrawFaceLandmark (wrapped_imgMat, wrapped_points, new OpenCVForUnity.CoreModule.Scalar ((double)color_v0.Value, (double)color_v1.Value, (double)color_v2.Value, (double)color_v3.Value), thickness.Value);
}
}
}

Просмотреть файл

@ -1,100 +1,100 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void DrawFaceRect (Mat imgMat, UnityEngine.Rect rect, Scalar color, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Scalar), "color")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmInt), "thickness")]
public class OpenCVForUnityUtils_DrawFaceRect : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("[arg2] Scalar")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Scalar))]
public HutongGames.PlayMaker.FsmObject
color;
[HutongGames.PlayMaker.ActionSection ("[arg3] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
imgMat = null;
color = null;
rect = null;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
if (!(color.Value is OpenCVForUnityPlayMakerActions.Scalar)) {
LogError ("color is not initialized. Add Action \"newScalar\".");
return;
}
OpenCVForUnity.CoreModule.Scalar wrapped_color = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar> (color);
OpenCVForUnityUtils.DrawFaceRect (wrapped_imgMat, rect.Value, wrapped_color, thickness.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void DrawFaceRect (Mat imgMat, UnityEngine.Rect rect, Scalar color, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Scalar), "color")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmInt), "thickness")]
public class OpenCVForUnityUtils_DrawFaceRect : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("[arg2] Scalar")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Scalar))]
public HutongGames.PlayMaker.FsmObject
color;
[HutongGames.PlayMaker.ActionSection ("[arg3] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
imgMat = null;
color = null;
rect = null;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
if (!(color.Value is OpenCVForUnityPlayMakerActions.Scalar)) {
LogError ("color is not initialized. Add Action \"newScalar\".");
return;
}
OpenCVForUnity.CoreModule.Scalar wrapped_color = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar> (color);
OpenCVForUnityUtils.DrawFaceRect (wrapped_imgMat, rect.Value, wrapped_color, thickness.Value);
}
}
}

Просмотреть файл

@ -1,116 +1,116 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void DrawFaceRect (Mat imgMat, UnityEngine.Rect rect, Scalar color, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v0")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v1")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v2")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v3")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmInt), "thickness")]
public class OpenCVForUnityUtils_DrawFaceRect_S : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("[arg2] Scalar")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v0;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v1;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v2;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v3;
[HutongGames.PlayMaker.ActionSection ("[arg3] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
imgMat = null;
color_v0 = 0.0f;
color_v1 = 0.0f;
color_v2 = 0.0f;
color_v3 = 0.0f;
rect = null;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
OpenCVForUnityUtils.DrawFaceRect (wrapped_imgMat, rect.Value, new OpenCVForUnity.CoreModule.Scalar ((double)color_v0.Value, (double)color_v1.Value, (double)color_v2.Value, (double)color_v3.Value), thickness.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void DrawFaceRect (Mat imgMat, UnityEngine.Rect rect, Scalar color, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v0")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v1")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v2")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmFloat), "color_v3")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmInt), "thickness")]
public class OpenCVForUnityUtils_DrawFaceRect_S : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("[arg2] Scalar")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v0;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v1;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v2;
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
color_v3;
[HutongGames.PlayMaker.ActionSection ("[arg3] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof(HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
imgMat = null;
color_v0 = 0.0f;
color_v1 = 0.0f;
color_v2 = 0.0f;
color_v3 = 0.0f;
rect = null;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
OpenCVForUnityUtils.DrawFaceRect (wrapped_imgMat, rect.Value, new OpenCVForUnity.CoreModule.Scalar ((double)color_v0.Value, (double)color_v1.Value, (double)color_v2.Value, (double)color_v3.Value), thickness.Value);
}
}
}

Просмотреть файл

@ -1,80 +1,80 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void SetImage (FaceLandmarkDetector faceLandmarkDetector, Mat imgMat)")]
[HutongGames.PlayMaker.ActionTarget (typeof(DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "faceLandmarkDetector")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
public class OpenCVForUnityUtils_SetImage : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
faceLandmarkDetector;
[HutongGames.PlayMaker.ActionSection ("[arg2] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
faceLandmarkDetector = null;
imgMat = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(faceLandmarkDetector.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector)) {
LogError ("faceLandmarkDetector is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_faceLandmarkDetector = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (faceLandmarkDetector);
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
OpenCVForUnityUtils.SetImage (wrapped_faceLandmarkDetector, wrapped_imgMat);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
using OpenCVForUnity;
using OpenCVForUnityPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void SetImage (FaceLandmarkDetector faceLandmarkDetector, Mat imgMat)")]
[HutongGames.PlayMaker.ActionTarget (typeof(DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "faceLandmarkDetector")]
[HutongGames.PlayMaker.ActionTarget (typeof(OpenCVForUnityPlayMakerActions.Mat), "imgMat")]
public class OpenCVForUnityUtils_SetImage : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
faceLandmarkDetector;
[HutongGames.PlayMaker.ActionSection ("[arg2] Mat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof(OpenCVForUnityPlayMakerActions.Mat))]
public HutongGames.PlayMaker.FsmObject
imgMat;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
faceLandmarkDetector = null;
imgMat = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(faceLandmarkDetector.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector)) {
LogError ("faceLandmarkDetector is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_faceLandmarkDetector = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (faceLandmarkDetector);
if (!(imgMat.Value is OpenCVForUnityPlayMakerActions.Mat)) {
LogError ("imgMat is not initialized. Add Action \"newMat\".");
return;
}
OpenCVForUnity.CoreModule.Mat wrapped_imgMat = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat> (imgMat);
OpenCVForUnityUtils.SetImage (wrapped_faceLandmarkDetector, wrapped_imgMat);
}
}
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,68 +1,68 @@
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void Dispose ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject), "owner")]
public class DlibFaceLandmarkDetector_Dispose : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DisposableDlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject))
{
// LogError ("owner is not initialized. Add Action \"newClassName\".");
return;
}
DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject wrapper = owner.Value as DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject;
DlibFaceLandmarkDetector.DisposableDlibObject warapped = wrapper.wrappedObject as DlibFaceLandmarkDetector.DisposableDlibObject;
warapped.Dispose ();
wrapper.wrappedObject = null;
Object.Destroy (owner.Value);
owner.Value = null;
}
}
}
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void Dispose ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject), "owner")]
public class DlibFaceLandmarkDetector_Dispose : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DisposableDlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject))
{
// LogError ("owner is not initialized. Add Action \"newClassName\".");
return;
}
DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject wrapper = owner.Value as DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject;
DlibFaceLandmarkDetector.DisposableDlibObject warapped = wrapper.wrappedObject as DlibFaceLandmarkDetector.DisposableDlibObject;
warapped.Dispose ();
wrapper.wrappedObject = null;
Object.Destroy (owner.Value);
owner.Value = null;
}
}
}

Просмотреть файл

@ -1,87 +1,87 @@
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public override bool Equals (Object obj)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "obj")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "storeResult")]
public class DlibFaceLandmarkDetector_Equals : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
obj;
[HutongGames.PlayMaker.ActionSection ("[return] bool")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmBool
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
obj = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
LogError ("owner is not initialized. Add Action \"newClassName\".");
return;
}
System.Object wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, System.Object> (owner);
if (!(obj.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
LogError ("obj is not initialized. Add Action \"newClassName\".");
return;
}
System.Object wrapped_obj = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, System.Object> (obj);
storeResult.Value = wrapped_owner.Equals (wrapped_obj);
}
}
}
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public override bool Equals (Object obj)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "obj")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "storeResult")]
public class DlibFaceLandmarkDetector_Equals : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
obj;
[HutongGames.PlayMaker.ActionSection ("[return] bool")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmBool
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
obj = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
LogError ("owner is not initialized. Add Action \"newClassName\".");
return;
}
System.Object wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, System.Object> (owner);
if (!(obj.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
LogError ("obj is not initialized. Add Action \"newClassName\".");
return;
}
System.Object wrapped_obj = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, System.Object> (obj);
storeResult.Value = wrapped_owner.Equals (wrapped_obj);
}
}
}

Просмотреть файл

@ -1,71 +1,71 @@
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public override int GetHashCode ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class DlibFaceLandmarkDetector_GetHashCode : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] int")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
LogError ("owner is not initialized. Add Action \"newClassName\".");
return;
}
System.Object wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, System.Object> (owner);
storeResult.Value = wrapped_owner.GetHashCode ();
}
}
}
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public override int GetHashCode ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class DlibFaceLandmarkDetector_GetHashCode : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] int")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
LogError ("owner is not initialized. Add Action \"newClassName\".");
return;
}
System.Object wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, System.Object> (owner);
storeResult.Value = wrapped_owner.GetHashCode ();
}
}
}

Просмотреть файл

@ -1,83 +1,83 @@
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public bool IsNull (Object obj)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEvent), "isNull")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEvent), "isNotNull")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "storeResult")]
public class DlibFaceLandmarkDetector_IsNull : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] bool")]
[HutongGames.PlayMaker.Tooltip ("Event to send if the DlibObject is null.")]
public HutongGames.PlayMaker.FsmEvent
isNull;
[HutongGames.PlayMaker.Tooltip ("Event to send if the DlibObject is NOT null.")]
public HutongGames.PlayMaker.FsmEvent
isNotNull;
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmBool
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
isNull = null;
isNotNull = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
storeResult.Value = true;
Fsm.Event (isNull);
return;
}
storeResult.Value = false;
Fsm.Event (isNotNull);
}
}
}
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public bool IsNull (Object obj)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEvent), "isNull")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEvent), "isNotNull")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "storeResult")]
public class DlibFaceLandmarkDetector_IsNull : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] bool")]
[HutongGames.PlayMaker.Tooltip ("Event to send if the DlibObject is null.")]
public HutongGames.PlayMaker.FsmEvent
isNull;
[HutongGames.PlayMaker.Tooltip ("Event to send if the DlibObject is NOT null.")]
public HutongGames.PlayMaker.FsmEvent
isNotNull;
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmBool
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
isNull = null;
isNotNull = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
storeResult.Value = true;
Fsm.Event (isNull);
return;
}
storeResult.Value = false;
Fsm.Event (isNotNull);
}
}
}

Просмотреть файл

@ -1,72 +1,72 @@
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public override String ToString ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmString), "storeResult")]
public class DlibFaceLandmarkDetector_ToString : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] string")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmString
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
LogError ("owner is not initialized. Add Action \"newClassName\".");
return;
}
System.Object wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, System.Object> (owner);
storeResult.Value = wrapped_owner.ToString ();
}
}
}
using UnityEngine;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public override String ToString ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmString), "storeResult")]
public class DlibFaceLandmarkDetector_ToString : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DlibObject")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] string")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmString
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))
{
LogError ("owner is not initialized. Add Action \"newClassName\".");
return;
}
System.Object wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, System.Object> (owner);
storeResult.Value = wrapped_owner.ToString ();
}
}
}

Просмотреть файл

@ -1,75 +1,75 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public float[] getValue ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class DoubleArray_getValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DoubleArray")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] float[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray (new System.Double[0]);
System.Double[] wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray, System.Double[]> (owner);
storeResult.Resize (wrapped_owner.Length);
for (int i = 0; i < wrapped_owner.Length; i++)
{
storeResult.Set (i, (float)wrapped_owner[i]);
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public float[] getValue ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class DoubleArray_getValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DoubleArray")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] float[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray (new System.Double[0]);
System.Double[] wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray, System.Double[]> (owner);
storeResult.Resize (wrapped_owner.Length);
for (int i = 0; i < wrapped_owner.Length; i++)
{
storeResult.Set (i, (float)wrapped_owner[i]);
}
}
}
}

Просмотреть файл

@ -1,74 +1,74 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public DoubleArray newDoubleArray (float[] array)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "array")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class DoubleArray_newDoubleArray : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] float[](Array(float))")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
array;
[HutongGames.PlayMaker.ActionSection ("[return] DoubleArray")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
array = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
float[] float_array = array.floatValues;
double[] casted_array = new double[float_array.Length];
// for (int i = 0; i < casted_array.Length; i++) {
// casted_array [i] = (double)float_array [i];
// }
float_array.CopyTo (casted_array, 0);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray (new System.Double[0]);
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = casted_array;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public DoubleArray newDoubleArray (float[] array)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "array")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class DoubleArray_newDoubleArray : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] float[](Array(float))")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
array;
[HutongGames.PlayMaker.ActionSection ("[return] DoubleArray")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
array = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
float[] float_array = array.floatValues;
double[] casted_array = new double[float_array.Length];
// for (int i = 0; i < casted_array.Length; i++) {
// casted_array [i] = (double)float_array [i];
// }
float_array.CopyTo (casted_array, 0);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray (new System.Double[0]);
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = casted_array;
}
}
}

Просмотреть файл

@ -1,74 +1,74 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void setValue (float[] array)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "array")]
public class DoubleArray_setValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DoubleArray")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] float[](Array(float))")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
array;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
array = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
float[] float_array = array.floatValues;
double[] casted_array = new double[float_array.Length];
// for (int i = 0; i < casted_array.Length; i++) {
// casted_array [i] = (double)float_array [i];
// }
float_array.CopyTo (casted_array, 0);
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray (new System.Double[0]);
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)owner.Value).wrappedObject = casted_array;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void setValue (float[] array)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "array")]
public class DoubleArray_setValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] DoubleArray")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] float[](Array(float))")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
array;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
array = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
float[] float_array = array.floatValues;
double[] casted_array = new double[float_array.Length];
// for (int i = 0; i < casted_array.Length; i++) {
// casted_array [i] = (double)float_array [i];
// }
float_array.CopyTo (casted_array, 0);
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray (new System.Double[0]);
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)owner.Value).wrappedObject = casted_array;
}
}
}

Просмотреть файл

@ -1,69 +1,69 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public float getValue ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "storeResult")]
public class Double_getValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] Double")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] float")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Double (0);
System.Double wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (owner);
storeResult.Value = (float)wrapped_owner;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public float getValue ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "storeResult")]
public class Double_getValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] Double")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] float")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Double (0);
System.Double wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (owner);
storeResult.Value = (float)wrapped_owner;
}
}
}

Просмотреть файл

@ -1,67 +1,67 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public Double newDouble (float value)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "value")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "storeResult")]
public class Double_newDouble : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] float")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
value;
[HutongGames.PlayMaker.ActionSection ("[return] Double")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
value = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Double (0);
((DlibFaceLandmarkDetectorPlayMakerActions.Double)storeResult.Value).wrappedObject = (System.Double)value.Value;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public Double newDouble (float value)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "value")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "storeResult")]
public class Double_newDouble : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] float")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
value;
[HutongGames.PlayMaker.ActionSection ("[return] Double")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
value = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Double (0);
((DlibFaceLandmarkDetectorPlayMakerActions.Double)storeResult.Value).wrappedObject = (System.Double)value.Value;
}
}
}

Просмотреть файл

@ -1,67 +1,67 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void setValue (float value)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "value")]
public class Double_setValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] Double")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] float")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
value;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
value = 0.0f;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Double (0);
((DlibFaceLandmarkDetectorPlayMakerActions.Double)owner.Value).wrappedObject = (System.Double)value.Value;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void setValue (float value)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "value")]
public class Double_setValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] Double")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] float")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
value;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
value = 0.0f;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Double (0);
((DlibFaceLandmarkDetectorPlayMakerActions.Double)owner.Value).wrappedObject = (System.Double)value.Value;
}
}
}

Просмотреть файл

@ -1,84 +1,84 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Rect> Detect ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_Detect : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] List<Rect>(Array(Rect))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
// [HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Rect)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<UnityEngine.Rect> wrapped_storeResult = wrapped_owner.Detect ();
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Rect> Detect ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_Detect : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] List<Rect>(Array(Rect))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
// [HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Rect)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<UnityEngine.Rect> wrapped_storeResult = wrapped_owner.Detect ();
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}

Просмотреть файл

@ -1,76 +1,76 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectArray ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class FaceLandmarkDetector_DetectArray : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] double[](DoubleArray)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!storeResult.IsNone)
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray ();
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = wrapped_owner.DetectArray ();
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectArray ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class FaceLandmarkDetector_DetectArray : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] double[](DoubleArray)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!storeResult.IsNone)
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray ();
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = wrapped_owner.DetectArray ();
}
}
}
}

Просмотреть файл

@ -1,93 +1,93 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectArray ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class FaceLandmarkDetector_DetectArray_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] double[](DoubleArray)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(adjust_threshold.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("adjust_threshold is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_adjust_threshold = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (adjust_threshold);
if (!storeResult.IsNone)
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray ();
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = wrapped_owner.DetectArray (wrapped_adjust_threshold);
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectArray ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class FaceLandmarkDetector_DetectArray_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] double[](DoubleArray)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(adjust_threshold.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("adjust_threshold is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_adjust_threshold = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (adjust_threshold);
if (!storeResult.IsNone)
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray ();
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = wrapped_owner.DetectArray (wrapped_adjust_threshold);
}
}
}
}

Просмотреть файл

@ -1,91 +1,91 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectArray ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectArray_1_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] double[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
double[] casted_storeResult = wrapped_owner.DetectArray ((float)adjust_threshold.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != casted_storeResult.Length) storeResult.Resize(casted_storeResult.Length);
for (int i = 0; i < casted_storeResult.Length; i++)
{
storeResult.Set(i, (float)casted_storeResult[i]);
}
storeResult.SaveChanges();
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectArray ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectArray_1_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] double[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
double[] casted_storeResult = wrapped_owner.DetectArray ((float)adjust_threshold.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != casted_storeResult.Length) storeResult.Resize(casted_storeResult.Length);
for (int i = 0; i < casted_storeResult.Length; i++)
{
storeResult.Set(i, (float)casted_storeResult[i]);
}
storeResult.SaveChanges();
}
}
}
}

Просмотреть файл

@ -1,82 +1,82 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectArray ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectArray_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] double[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
double[] casted_storeResult = wrapped_owner.DetectArray ();
if (!storeResult.IsNone)
{
if (storeResult.Length != casted_storeResult.Length) storeResult.Resize(casted_storeResult.Length);
for (int i = 0; i < casted_storeResult.Length; i++)
{
storeResult.Set(i, (float)casted_storeResult[i]);
}
storeResult.SaveChanges();
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectArray ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectArray_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] double[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
double[] casted_storeResult = wrapped_owner.DetectArray ();
if (!storeResult.IsNone)
{
if (storeResult.Length != casted_storeResult.Length) storeResult.Resize(casted_storeResult.Length);
for (int i = 0; i < casted_storeResult.Length; i++)
{
storeResult.Set(i, (float)casted_storeResult[i]);
}
storeResult.SaveChanges();
}
}
}
}

Просмотреть файл

@ -1,146 +1,146 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (double left, double top, double width, double height)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "left")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "top")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmark : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
left;
[HutongGames.PlayMaker.ActionSection ("[arg2] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
right;
[HutongGames.PlayMaker.ActionSection ("[arg3] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
width;
[HutongGames.PlayMaker.ActionSection ("[arg4] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
height;
[HutongGames.PlayMaker.ActionSection ("[return] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
left = null;
right = null;
width = null;
height = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(left.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("left is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_left = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (left);
if (!(right.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("right is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_right = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (right);
if (!(width.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("width is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_width = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (width);
if (!(height.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("height is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_height = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (height);
List<UnityEngine.Vector2> wrapped_storeResult = wrapped_owner.DetectLandmark (wrapped_left, wrapped_right, wrapped_width, wrapped_height);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (double left, double top, double width, double height)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "left")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "top")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmark : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
left;
[HutongGames.PlayMaker.ActionSection ("[arg2] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
right;
[HutongGames.PlayMaker.ActionSection ("[arg3] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
width;
[HutongGames.PlayMaker.ActionSection ("[arg4] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
height;
[HutongGames.PlayMaker.ActionSection ("[return] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
left = null;
right = null;
width = null;
height = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(left.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("left is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_left = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (left);
if (!(right.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("right is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_right = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (right);
if (!(width.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("width is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_width = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (width);
if (!(height.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("height is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_height = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (height);
List<UnityEngine.Vector2> wrapped_storeResult = wrapped_owner.DetectLandmark (wrapped_left, wrapped_right, wrapped_width, wrapped_height);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}

Просмотреть файл

@ -1,137 +1,137 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (double left, double top, double width, double height)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "left")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "top")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmarkArray : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
left;
[HutongGames.PlayMaker.ActionSection ("[arg2] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
right;
[HutongGames.PlayMaker.ActionSection ("[arg3] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
width;
[HutongGames.PlayMaker.ActionSection ("[arg4] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
height;
[HutongGames.PlayMaker.ActionSection ("[return] double[](DoubleArray)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
left = null;
right = null;
width = null;
height = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(left.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("left is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_left = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (left);
if (!(right.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("right is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_right = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (right);
if (!(width.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("width is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_width = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (width);
if (!(height.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("height is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_height = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (height);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray ();
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = wrapped_owner.DetectLandmarkArray (wrapped_left, wrapped_right, wrapped_width, wrapped_height);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (double left, double top, double width, double height)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "left")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "top")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmarkArray : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
left;
[HutongGames.PlayMaker.ActionSection ("[arg2] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
right;
[HutongGames.PlayMaker.ActionSection ("[arg3] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
width;
[HutongGames.PlayMaker.ActionSection ("[arg4] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
height;
[HutongGames.PlayMaker.ActionSection ("[return] double[](DoubleArray)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
left = null;
right = null;
width = null;
height = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(left.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("left is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_left = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (left);
if (!(right.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("right is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_right = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (right);
if (!(width.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("width is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_width = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (width);
if (!(height.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("height is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_height = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (height);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray ();
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = wrapped_owner.DetectLandmarkArray (wrapped_left, wrapped_right, wrapped_width, wrapped_height);
}
}
}

Просмотреть файл

@ -1,86 +1,86 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectLandmarkArray (Rect rect)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmarkArray_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[return] double[](DoubleArray)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
rect = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray ();
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = wrapped_owner.DetectLandmarkArray (rect.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectLandmarkArray (Rect rect)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmarkArray_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[return] double[](DoubleArray)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
rect = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray ();
((DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray)storeResult.Value).wrappedObject = wrapped_owner.DetectLandmarkArray (rect.Value);
}
}
}

Просмотреть файл

@ -1,90 +1,90 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectLandmarkArray (Rect rect)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmarkArray_1_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[return] double[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
rect = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
double[] casted_storeResult = wrapped_owner.DetectLandmarkArray (rect.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != casted_storeResult.Length) storeResult.Resize(casted_storeResult.Length);
for (int i = 0; i < casted_storeResult.Length; i++)
{
storeResult.Set(i, (float)casted_storeResult[i]);
}
storeResult.SaveChanges();
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double[] DetectLandmarkArray (Rect rect)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmarkArray_1_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[return] double[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
rect = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
double[] casted_storeResult = wrapped_owner.DetectLandmarkArray (rect.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != casted_storeResult.Length) storeResult.Resize(casted_storeResult.Length);
for (int i = 0; i < casted_storeResult.Length; i++)
{
storeResult.Set(i, (float)casted_storeResult[i]);
}
storeResult.SaveChanges();
}
}
}
}

Просмотреть файл

@ -1,117 +1,117 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (double left, double top, double width, double height)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "left")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "top")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmarkArray_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
left;
[HutongGames.PlayMaker.ActionSection ("[arg2] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
right;
[HutongGames.PlayMaker.ActionSection ("[arg3] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
width;
[HutongGames.PlayMaker.ActionSection ("[arg4] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
height;
[HutongGames.PlayMaker.ActionSection ("[return] double[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
left = 0.0f;
right = 0.0f;
width = 0.0f;
height = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
double[] casted_storeResult = wrapped_owner.DetectLandmarkArray (left.Value, right.Value, width.Value, height.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != casted_storeResult.Length) storeResult.Resize(casted_storeResult.Length);
for (int i = 0; i < casted_storeResult.Length; i++)
{
storeResult.Set(i, (float)casted_storeResult[i]);
}
storeResult.SaveChanges();
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (double left, double top, double width, double height)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "left")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "top")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmarkArray_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
left;
[HutongGames.PlayMaker.ActionSection ("[arg2] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
right;
[HutongGames.PlayMaker.ActionSection ("[arg3] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
width;
[HutongGames.PlayMaker.ActionSection ("[arg4] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
height;
[HutongGames.PlayMaker.ActionSection ("[return] double[](Array(float))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Float)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
left = 0.0f;
right = 0.0f;
width = 0.0f;
height = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
double[] casted_storeResult = wrapped_owner.DetectLandmarkArray (left.Value, right.Value, width.Value, height.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != casted_storeResult.Length) storeResult.Resize(casted_storeResult.Length);
for (int i = 0; i < casted_storeResult.Length; i++)
{
storeResult.Set(i, (float)casted_storeResult[i]);
}
storeResult.SaveChanges();
}
}
}
}

Просмотреть файл

@ -1,98 +1,98 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (Rect rect)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmark_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[return] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
rect = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<UnityEngine.Vector2> wrapped_storeResult = wrapped_owner.DetectLandmark (rect.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (Rect rect)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmRect), "rect")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmark_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Rect")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
rect;
[HutongGames.PlayMaker.ActionSection ("[return] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
rect = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<UnityEngine.Vector2> wrapped_storeResult = wrapped_owner.DetectLandmark (rect.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}

Просмотреть файл

@ -1,118 +1,118 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (double left, double top, double width, double height)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "left")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "top")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmark_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
left;
[HutongGames.PlayMaker.ActionSection ("[arg2] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
right;
[HutongGames.PlayMaker.ActionSection ("[arg3] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
width;
[HutongGames.PlayMaker.ActionSection ("[arg4] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
height;
[HutongGames.PlayMaker.ActionSection ("[return] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
left = 0.0f;
right = 0.0f;
width = 0.0f;
height = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<UnityEngine.Vector2> wrapped_storeResult = wrapped_owner.DetectLandmark ((float)left.Value, (float)right.Value, (float)width.Value, (float)height.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Vector2> DetectLandmark (double left, double top, double width, double height)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "left")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "top")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectLandmark_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
left;
[HutongGames.PlayMaker.ActionSection ("[arg2] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
right;
[HutongGames.PlayMaker.ActionSection ("[arg3] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
width;
[HutongGames.PlayMaker.ActionSection ("[arg4] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
height;
[HutongGames.PlayMaker.ActionSection ("[return] List<Vector2>(Array(Vector2))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Vector2)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
left = 0.0f;
right = 0.0f;
width = 0.0f;
height = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<UnityEngine.Vector2> wrapped_storeResult = wrapped_owner.DetectLandmark ((float)left.Value, (float)right.Value, (float)width.Value, (float)height.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}

Просмотреть файл

@ -1,77 +1,77 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<RectDetection> DetectRectDetection ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectRectDetection : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] List<RectDetection>(Array(RectDetection))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> wrapped_storeResult = wrapped_owner.DetectRectDetection ();
if (!storeResult.IsNone)
{
DlibFaceLandmarkDetectorPlayMakerActionsUtils.ConvertListToFsmArray<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection, DlibFaceLandmarkDetectorPlayMakerActions.RectDetection> (wrapped_storeResult, storeResult);
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<RectDetection> DetectRectDetection ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectRectDetection : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] List<RectDetection>(Array(RectDetection))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> wrapped_storeResult = wrapped_owner.DetectRectDetection ();
if (!storeResult.IsNone)
{
DlibFaceLandmarkDetectorPlayMakerActionsUtils.ConvertListToFsmArray<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection, DlibFaceLandmarkDetectorPlayMakerActions.RectDetection> (wrapped_storeResult, storeResult);
}
}
}
}

Просмотреть файл

@ -1,93 +1,93 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<RectDetection> DetectRectDetection (double adjust_threshold)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectRectDetection_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] List<RectDetection>(Array(RectDetection))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(adjust_threshold.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("adjust_threshold is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_adjust_threshold = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (adjust_threshold);
List<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> wrapped_storeResult = wrapped_owner.DetectRectDetection (wrapped_adjust_threshold);
if (!storeResult.IsNone)
{
DlibFaceLandmarkDetectorPlayMakerActionsUtils.ConvertListToFsmArray<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection, DlibFaceLandmarkDetectorPlayMakerActions.RectDetection> (wrapped_storeResult, storeResult);
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<RectDetection> DetectRectDetection (double adjust_threshold)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectRectDetection_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] List<RectDetection>(Array(RectDetection))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(adjust_threshold.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("adjust_threshold is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_adjust_threshold = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (adjust_threshold);
List<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> wrapped_storeResult = wrapped_owner.DetectRectDetection (wrapped_adjust_threshold);
if (!storeResult.IsNone)
{
DlibFaceLandmarkDetectorPlayMakerActionsUtils.ConvertListToFsmArray<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection, DlibFaceLandmarkDetectorPlayMakerActions.RectDetection> (wrapped_storeResult, storeResult);
}
}
}
}

Просмотреть файл

@ -1,86 +1,86 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<RectDetection> DetectRectDetection (double adjust_threshold)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectRectDetection_1_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] List<RectDetection>(Array(RectDetection))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> wrapped_storeResult = wrapped_owner.DetectRectDetection ((float)adjust_threshold.Value);
if (!storeResult.IsNone)
{
DlibFaceLandmarkDetectorPlayMakerActionsUtils.ConvertListToFsmArray<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection, DlibFaceLandmarkDetectorPlayMakerActions.RectDetection> (wrapped_storeResult, storeResult);
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<RectDetection> DetectRectDetection (double adjust_threshold)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_DetectRectDetection_1_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] List<RectDetection>(Array(RectDetection))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ArrayEditor (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> wrapped_storeResult = wrapped_owner.DetectRectDetection ((float)adjust_threshold.Value);
if (!storeResult.IsNone)
{
DlibFaceLandmarkDetectorPlayMakerActionsUtils.ConvertListToFsmArray<DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection, DlibFaceLandmarkDetectorPlayMakerActions.RectDetection> (wrapped_storeResult, storeResult);
}
}
}
}

Просмотреть файл

@ -1,101 +1,101 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Rect> Detect (double adjust_threshold)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_Detect_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] List<Rect>(Array(Rect))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
// [HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Rect)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(adjust_threshold.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("adjust_threshold is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_adjust_threshold = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (adjust_threshold);
List<UnityEngine.Rect> wrapped_storeResult = wrapped_owner.Detect (wrapped_adjust_threshold);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Rect> Detect (double adjust_threshold)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_Detect_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(Double)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] List<Rect>(Array(Rect))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
// [HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Rect)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(adjust_threshold.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
{
LogError ("adjust_threshold is not initialized. Add Action \"newDouble\".");
return;
}
System.Double wrapped_adjust_threshold = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Double, System.Double> (adjust_threshold);
List<UnityEngine.Rect> wrapped_storeResult = wrapped_owner.Detect (wrapped_adjust_threshold);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}

Просмотреть файл

@ -1,93 +1,93 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Rect> Detect (double adjust_threshold)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_Detect_1_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] List<Rect>(Array(Rect))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
// [HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Rect)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<UnityEngine.Rect> wrapped_storeResult = wrapped_owner.Detect ((float)adjust_threshold.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public List<Rect> Detect (double adjust_threshold)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "adjust_threshold")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmArray), "storeResult")]
public class FaceLandmarkDetector_Detect_1_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] double(float)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
adjust_threshold;
[HutongGames.PlayMaker.ActionSection ("[return] List<Rect>(Array(Rect))")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
// [HutongGames.PlayMaker.ArrayEditor (HutongGames.PlayMaker.VariableType.Rect)]
public HutongGames.PlayMaker.FsmArray
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
adjust_threshold = 0.0f;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
List<UnityEngine.Rect> wrapped_storeResult = wrapped_owner.Detect ((float)adjust_threshold.Value);
if (!storeResult.IsNone)
{
if (storeResult.Length != wrapped_storeResult.Count)
{
storeResult.Resize (wrapped_storeResult.Count);
}
for (int i = 0; i < wrapped_storeResult.Count; i++)
{
storeResult.Set (i, wrapped_storeResult[i]);
}
}
}
}
}

Просмотреть файл

@ -1,107 +1,107 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void DrawDetectLandmarkResult (Texture2D texture2D, int r, int g, int b, int a)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (Texture2D), "texture2D")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "r")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "g")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "b")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "a")]
public class FaceLandmarkDetector_DrawDetectLandmarkResult : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Texture2D(texture)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (Texture2D))]
public HutongGames.PlayMaker.FsmTexture
texture2D;
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
r;
[HutongGames.PlayMaker.ActionSection ("[arg2] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
g;
[HutongGames.PlayMaker.ActionSection ("[arg3] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
b;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
a;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
texture2D = null;
r = 0;
g = 0;
b = 0;
a = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
wrapped_owner.DrawDetectLandmarkResult (texture2D.Value as Texture2D, r.Value, g.Value, b.Value, a.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void DrawDetectLandmarkResult (Texture2D texture2D, int r, int g, int b, int a)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (Texture2D), "texture2D")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "r")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "g")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "b")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "a")]
public class FaceLandmarkDetector_DrawDetectLandmarkResult : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Texture2D(texture)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (Texture2D))]
public HutongGames.PlayMaker.FsmTexture
texture2D;
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
r;
[HutongGames.PlayMaker.ActionSection ("[arg2] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
g;
[HutongGames.PlayMaker.ActionSection ("[arg3] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
b;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
a;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
texture2D = null;
r = 0;
g = 0;
b = 0;
a = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
wrapped_owner.DrawDetectLandmarkResult (texture2D.Value as Texture2D, r.Value, g.Value, b.Value, a.Value);
}
}
}

Просмотреть файл

@ -1,112 +1,112 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void DrawDetectResult (Texture2D texture2D, int r, int g, int b, int a, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (Texture2D), "texture2D")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "r")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "g")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "b")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "a")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "thickness")]
public class FaceLandmarkDetector_DrawDetectResult : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Texture2D(texture)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (Texture2D))]
public HutongGames.PlayMaker.FsmTexture
texture2D;
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
r;
[HutongGames.PlayMaker.ActionSection ("[arg2] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
g;
[HutongGames.PlayMaker.ActionSection ("[arg3] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
b;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
a;
[HutongGames.PlayMaker.ActionSection ("[arg5] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
texture2D = null;
r = 0;
g = 0;
b = 0;
a = 0;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
wrapped_owner.DrawDetectResult (texture2D.Value as Texture2D, r.Value, g.Value, b.Value, a.Value, thickness.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void DrawDetectResult (Texture2D texture2D, int r, int g, int b, int a, int thickness)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (Texture2D), "texture2D")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "r")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "g")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "b")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "a")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "thickness")]
public class FaceLandmarkDetector_DrawDetectResult : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Texture2D(texture)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (Texture2D))]
public HutongGames.PlayMaker.FsmTexture
texture2D;
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
r;
[HutongGames.PlayMaker.ActionSection ("[arg2] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
g;
[HutongGames.PlayMaker.ActionSection ("[arg3] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
b;
[HutongGames.PlayMaker.ActionSection ("[arg4] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
a;
[HutongGames.PlayMaker.ActionSection ("[arg5] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
thickness;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
texture2D = null;
r = 0;
g = 0;
b = 0;
a = 0;
thickness = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
wrapped_owner.DrawDetectResult (texture2D.Value as Texture2D, r.Value, g.Value, b.Value, a.Value, thickness.Value);
}
}
}

Просмотреть файл

@ -1,78 +1,78 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetShapePredictorNumFeatures ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "storeResult")]
public class FaceLandmarkDetector_GetShapePredictorNumFeatures : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(Long)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long ();
((DlibFaceLandmarkDetectorPlayMakerActions.Long)storeResult.Value).wrappedObject = wrapped_owner.GetShapePredictorNumFeatures ();
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetShapePredictorNumFeatures ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "storeResult")]
public class FaceLandmarkDetector_GetShapePredictorNumFeatures : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(Long)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long ();
((DlibFaceLandmarkDetectorPlayMakerActions.Long)storeResult.Value).wrappedObject = wrapped_owner.GetShapePredictorNumFeatures ();
}
}
}

Просмотреть файл

@ -1,75 +1,75 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetShapePredictorNumFeatures ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class FaceLandmarkDetector_GetShapePredictorNumFeatures_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(int)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
storeResult.Value = (int)wrapped_owner.GetShapePredictorNumFeatures ();
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetShapePredictorNumFeatures ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class FaceLandmarkDetector_GetShapePredictorNumFeatures_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(int)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
storeResult.Value = (int)wrapped_owner.GetShapePredictorNumFeatures ();
}
}
}

Просмотреть файл

@ -1,77 +1,77 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetShapePredictorNumParts ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "storeResult")]
public class FaceLandmarkDetector_GetShapePredictorNumParts : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(Long)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long ();
((DlibFaceLandmarkDetectorPlayMakerActions.Long)storeResult.Value).wrappedObject = wrapped_owner.GetShapePredictorNumParts ();
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetShapePredictorNumParts ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "storeResult")]
public class FaceLandmarkDetector_GetShapePredictorNumParts : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(Long)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long ();
((DlibFaceLandmarkDetectorPlayMakerActions.Long)storeResult.Value).wrappedObject = wrapped_owner.GetShapePredictorNumParts ();
}
}
}

Просмотреть файл

@ -1,75 +1,75 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetShapePredictorNumParts ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class FaceLandmarkDetector_GetShapePredictorNumParts_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(int)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
storeResult.Value = (int)wrapped_owner.GetShapePredictorNumParts ();
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetShapePredictorNumParts ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class FaceLandmarkDetector_GetShapePredictorNumParts_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(int)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
storeResult.Value = (int)wrapped_owner.GetShapePredictorNumParts ();
}
}
}

Просмотреть файл

@ -1,88 +1,88 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public bool IsAllPartsInRect ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEvent), "trueEvent")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEvent), "falseEvent")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "storeResult")]
public class FaceLandmarkDetector_IsAllPartsInRect : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] bool")]
[HutongGames.PlayMaker.Tooltip ("Event to send if result is true.")]
public HutongGames.PlayMaker.FsmEvent
trueEvent;
[HutongGames.PlayMaker.Tooltip ("Event to send if result is false.")]
public HutongGames.PlayMaker.FsmEvent
falseEvent;
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmBool))]
public HutongGames.PlayMaker.FsmBool
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
trueEvent = null;
falseEvent = null;
storeResult = false;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
storeResult.Value = wrapped_owner.IsAllPartsInRect ();
Fsm.Event (storeResult.Value ? trueEvent : falseEvent);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public bool IsAllPartsInRect ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEvent), "trueEvent")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEvent), "falseEvent")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "storeResult")]
public class FaceLandmarkDetector_IsAllPartsInRect : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] bool")]
[HutongGames.PlayMaker.Tooltip ("Event to send if result is true.")]
public HutongGames.PlayMaker.FsmEvent
trueEvent;
[HutongGames.PlayMaker.Tooltip ("Event to send if result is false.")]
public HutongGames.PlayMaker.FsmEvent
falseEvent;
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmBool))]
public HutongGames.PlayMaker.FsmBool
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
trueEvent = null;
falseEvent = null;
storeResult = false;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
storeResult.Value = wrapped_owner.IsAllPartsInRect ();
Fsm.Event (storeResult.Value ? trueEvent : falseEvent);
}
}
}

Просмотреть файл

@ -1,72 +1,72 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void SetImage (Texture2D texture2D)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (Texture2D), "texture2D")]
public class FaceLandmarkDetector_SetImage : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Texture2D(texture)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (Texture2D))]
public HutongGames.PlayMaker.FsmTexture
texture2D;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
texture2D = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
wrapped_owner.SetImage (texture2D.Value as Texture2D);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void SetImage (Texture2D texture2D)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (Texture2D), "texture2D")]
public class FaceLandmarkDetector_SetImage : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] Texture2D(texture)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (Texture2D))]
public HutongGames.PlayMaker.FsmTexture
texture2D;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
texture2D = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
wrapped_owner.SetImage (texture2D.Value as Texture2D);
}
}
}

Просмотреть файл

@ -1,72 +1,72 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void SetImage (WebCamTexture webCamTexture)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (WebCamTexture), "webCamTexture")]
public class FaceLandmarkDetector_SetImage_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] WebCamTexture(texture)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (WebCamTexture))]
public HutongGames.PlayMaker.FsmTexture
webCamTexture;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
webCamTexture = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
wrapped_owner.SetImage (webCamTexture.Value as WebCamTexture);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void SetImage (WebCamTexture webCamTexture)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (WebCamTexture), "webCamTexture")]
public class FaceLandmarkDetector_SetImage_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] WebCamTexture(texture)")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (WebCamTexture))]
public HutongGames.PlayMaker.FsmTexture
webCamTexture;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
webCamTexture = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
{
LogError ("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);
wrapped_owner.SetImage (webCamTexture.Value as WebCamTexture);
}
}
}

Просмотреть файл

@ -1,68 +1,68 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public FaceLandmarkDetector (string shapePredictorFilePath)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmString), "shapePredictorFilePath")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "storeResult")]
public class FaceLandmarkDetector_newFaceLandmarkDetector : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmString))]
public HutongGames.PlayMaker.FsmString
shapePredictorFilePath;
[HutongGames.PlayMaker.ActionSection ("[return] FaceLandmarkDetector")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
shapePredictorFilePath = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector ();
((DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector)storeResult.Value).wrappedObject = new DlibFaceLandmarkDetector.FaceLandmarkDetector (shapePredictorFilePath.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public FaceLandmarkDetector (string shapePredictorFilePath)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmString), "shapePredictorFilePath")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "storeResult")]
public class FaceLandmarkDetector_newFaceLandmarkDetector : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmString))]
public HutongGames.PlayMaker.FsmString
shapePredictorFilePath;
[HutongGames.PlayMaker.ActionSection ("[return] FaceLandmarkDetector")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
shapePredictorFilePath = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector ();
((DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector)storeResult.Value).wrappedObject = new DlibFaceLandmarkDetector.FaceLandmarkDetector (shapePredictorFilePath.Value);
}
}
}

Просмотреть файл

@ -1,76 +1,76 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public FaceLandmarkDetector (string objectDetectorFilePath, string shapePredictorFilePath)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmString), "objectDetectorFilePath")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmString), "shapePredictorFilePath")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "storeResult")]
public class FaceLandmarkDetector_newFaceLandmarkDetector_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmString))]
public HutongGames.PlayMaker.FsmString
objectDetectorFilePath;
[HutongGames.PlayMaker.ActionSection ("[arg2] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmString))]
public HutongGames.PlayMaker.FsmString
shapePredictorFilePath;
[HutongGames.PlayMaker.ActionSection ("[return] FaceLandmarkDetector")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
objectDetectorFilePath = null;
shapePredictorFilePath = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector ();
((DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector)storeResult.Value).wrappedObject = new DlibFaceLandmarkDetector.FaceLandmarkDetector (objectDetectorFilePath.Value, shapePredictorFilePath.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public FaceLandmarkDetector (string objectDetectorFilePath, string shapePredictorFilePath)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmString), "objectDetectorFilePath")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmString), "shapePredictorFilePath")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector), "storeResult")]
public class FaceLandmarkDetector_newFaceLandmarkDetector_1 : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmString))]
public HutongGames.PlayMaker.FsmString
objectDetectorFilePath;
[HutongGames.PlayMaker.ActionSection ("[arg2] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmString))]
public HutongGames.PlayMaker.FsmString
shapePredictorFilePath;
[HutongGames.PlayMaker.ActionSection ("[return] FaceLandmarkDetector")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
objectDetectorFilePath = null;
shapePredictorFilePath = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector ();
((DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector)storeResult.Value).wrappedObject = new DlibFaceLandmarkDetector.FaceLandmarkDetector (objectDetectorFilePath.Value, shapePredictorFilePath.Value);
}
}
}

Просмотреть файл

@ -1,69 +1,69 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public int getValue ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class Long_getValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] Long")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] int")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long (0);
System.Int64 wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Long, System.Int64> (owner);
storeResult.Value = (int)wrapped_owner;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public int getValue ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class Long_getValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] Long")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] int")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long (0);
System.Int64 wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.Long, System.Int64> (owner);
storeResult.Value = (int)wrapped_owner;
}
}
}

Просмотреть файл

@ -1,67 +1,67 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public Long newLong (int value)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "value")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "storeResult")]
public class Long_newLong : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
value;
[HutongGames.PlayMaker.ActionSection ("[return] Long")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
value = 0;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long (0);
((DlibFaceLandmarkDetectorPlayMakerActions.Long)storeResult.Value).wrappedObject = (System.Int64)value.Value;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public Long newLong (int value)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "value")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "storeResult")]
public class Long_newLong : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
value;
[HutongGames.PlayMaker.ActionSection ("[return] Long")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
value = 0;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long (0);
((DlibFaceLandmarkDetectorPlayMakerActions.Long)storeResult.Value).wrappedObject = (System.Int64)value.Value;
}
}
}

Просмотреть файл

@ -1,67 +1,67 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void setValue (int value)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "value")]
public class Long_setValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] Long")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
value;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
value = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long (0);
((DlibFaceLandmarkDetectorPlayMakerActions.Long)owner.Value).wrappedObject = (System.Int64)value.Value;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public void setValue (int value)")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "value")]
public class Long_setValue : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] Long")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
value;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
value = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
owner.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long (0);
((DlibFaceLandmarkDetectorPlayMakerActions.Long)owner.Value).wrappedObject = (System.Int64)value.Value;
}
}
}

Просмотреть файл

@ -1,77 +1,77 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double GetDetectionConfidence ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "storeResult")]
public class RectDetection_GetDetectionConfidence : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] double(Double)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Double ();
((DlibFaceLandmarkDetectorPlayMakerActions.Double)storeResult.Value).wrappedObject = wrapped_owner.detection_confidence;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double GetDetectionConfidence ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double), "storeResult")]
public class RectDetection_GetDetectionConfidence : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] double(Double)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Double))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Double ();
((DlibFaceLandmarkDetectorPlayMakerActions.Double)storeResult.Value).wrappedObject = wrapped_owner.detection_confidence;
}
}
}

Просмотреть файл

@ -1,76 +1,76 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double GetDetectionConfidence ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "storeResult")]
public class RectDetection_GetDetectionConfidence_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] double(float)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = 0.0f;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
storeResult.Value = (float)wrapped_owner.detection_confidence;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public double GetDetectionConfidence ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmFloat), "storeResult")]
public class RectDetection_GetDetectionConfidence_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] double(float)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmFloat))]
public HutongGames.PlayMaker.FsmFloat
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = 0.0f;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
storeResult.Value = (float)wrapped_owner.detection_confidence;
}
}
}

Просмотреть файл

@ -1,75 +1,75 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public Rect GetRect ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmRect), "storeResult")]
public class RectDetection_GetRect : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] Rect")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
storeResult.Value = wrapped_owner.rect;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public Rect GetRect ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmRect), "storeResult")]
public class RectDetection_GetRect : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] Rect")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmRect))]
public HutongGames.PlayMaker.FsmRect
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
storeResult.Value = wrapped_owner.rect;
}
}
}

Просмотреть файл

@ -1,77 +1,77 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetWeightIndex ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "storeResult")]
public class RectDetection_GetWeightIndex : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(Long)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long ();
((DlibFaceLandmarkDetectorPlayMakerActions.Long)storeResult.Value).wrappedObject = wrapped_owner.weight_index;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetWeightIndex ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long), "storeResult")]
public class RectDetection_GetWeightIndex : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(Long)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public HutongGames.PlayMaker.FsmObject
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
if (!(storeResult.Value is DlibFaceLandmarkDetectorPlayMakerActions.Long))
storeResult.Value = new DlibFaceLandmarkDetectorPlayMakerActions.Long ();
((DlibFaceLandmarkDetectorPlayMakerActions.Long)storeResult.Value).wrappedObject = wrapped_owner.weight_index;
}
}
}

Просмотреть файл

@ -1,76 +1,76 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetWeightIndex ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class RectDetection_GetWeightIndex_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(int)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
storeResult.Value = (int)wrapped_owner.weight_index;
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public long GetWeightIndex ()")]
[HutongGames.PlayMaker.ActionTarget (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection), "owner")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "storeResult")]
public class RectDetection_GetWeightIndex_C : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[class] FaceLandmarkDetector")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public HutongGames.PlayMaker.FsmObject
owner;
[HutongGames.PlayMaker.ActionSection ("[return] long(int)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
owner = null;
storeResult = 0;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))
{
LogError ("owner is not initialized. Add Action \"newRectDetection\".");
return;
}
DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject<DlibFaceLandmarkDetectorPlayMakerActions.RectDetection, DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> (owner);
storeResult.Value = (int)wrapped_owner.weight_index;
}
}
}

Просмотреть файл

@ -1,68 +1,68 @@
using UnityEngine;
using DlibFaceLandmarkDetector.UnityUtils;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static string getFilePath (string filepath, bool refresh = false)")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmString), "filepath")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmBool), "refresh")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmString), "storeResult")]
public class Utils_getFilePath : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
public HutongGames.PlayMaker.FsmString
filepath;
[HutongGames.PlayMaker.ActionSection ("[arg2] bool")]
public HutongGames.PlayMaker.FsmBool
refresh;
[HutongGames.PlayMaker.ActionSection ("[return] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmString
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
filepath = null;
refresh = false;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
storeResult.Value = Utils.getFilePath (filepath.Value, refresh.Value);
}
}
}
using UnityEngine;
using DlibFaceLandmarkDetector.UnityUtils;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static string getFilePath (string filepath, bool refresh = false)")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmString), "filepath")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmBool), "refresh")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmString), "storeResult")]
public class Utils_getFilePath : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
public HutongGames.PlayMaker.FsmString
filepath;
[HutongGames.PlayMaker.ActionSection ("[arg2] bool")]
public HutongGames.PlayMaker.FsmBool
refresh;
[HutongGames.PlayMaker.ActionSection ("[return] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmString
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
filepath = null;
refresh = false;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
storeResult.Value = Utils.getFilePath (filepath.Value, refresh.Value);
}
}
}

Просмотреть файл

@ -1,85 +1,85 @@
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector.UnityUtils;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static IEnumerator getFilePathAsync (string filepath, Action<string> completed, Action<string, float> progress = null, bool refresh = false)")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmString), "filepath")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmEventTarget), "completedEventTarget")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmEvent), "completedEvent")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmEventTarget), "progressEventTarget")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmEvent), "progressEvent")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmBool), "refresh")]
public class Utils_getFilePathAsync : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
public HutongGames.PlayMaker.FsmString
filepath;
[HutongGames.PlayMaker.ActionSection ("[arg2] FsmEventTarget")]
public HutongGames.PlayMaker.FsmEventTarget
completedEventTarget;
[HutongGames.PlayMaker.ActionSection ("[arg3] FsmEvent EventData(string)")]
[HutongGames.PlayMaker.Tooltip ("Event to send when completed.You can get the filePath(StringData) from the GetEventInfo action.")]
public HutongGames.PlayMaker.FsmEvent
completedEvent;
[HutongGames.PlayMaker.ActionSection ("[arg4] FsmEventTarget")]
public HutongGames.PlayMaker.FsmEventTarget
progressEventTarget = new HutongGames.PlayMaker.FsmEventTarget ();
[HutongGames.PlayMaker.ActionSection ("[arg5] FsmEvent EventData(string, float)")]
[HutongGames.PlayMaker.Tooltip ("Event to send when progress.You can get the filePath(StringData) and progress(floatData) from the GetEventInfo action.")]
public HutongGames.PlayMaker.FsmEvent
progressEvent;
[HutongGames.PlayMaker.ActionSection ("[arg6] bool")]
public HutongGames.PlayMaker.FsmBool
refresh;
private Coroutine routine;
public override void Reset ()
{
filepath = null;
completedEventTarget = null;
completedEvent = null;
progressEventTarget.target = HutongGames.PlayMaker.FsmEventTarget.EventTarget.BroadcastAll;
progressEvent = null;
refresh = false;
}
public override void OnEnter ()
{
routine = StartCoroutine (Utils.getFilePathAsync (filepath.Value, (completedString) => {
HutongGames.PlayMaker.Fsm.EventData.StringData = completedString;
Fsm.Event (completedEventTarget, completedEvent);
}, (progressString, progressFloat) => {
HutongGames.PlayMaker.Fsm.EventData.StringData = progressString;
HutongGames.PlayMaker.Fsm.EventData.FloatData = progressFloat;
Fsm.Event (progressEventTarget, progressEvent);
}, refresh.Value));
}
public override void OnExit ()
{
if (routine != null)
StopCoroutine (routine);
}
}
}
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector.UnityUtils;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static IEnumerator getFilePathAsync (string filepath, Action<string> completed, Action<string, float> progress = null, bool refresh = false)")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmString), "filepath")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmEventTarget), "completedEventTarget")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmEvent), "completedEvent")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmEventTarget), "progressEventTarget")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmEvent), "progressEvent")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmBool), "refresh")]
public class Utils_getFilePathAsync : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
public HutongGames.PlayMaker.FsmString
filepath;
[HutongGames.PlayMaker.ActionSection ("[arg2] FsmEventTarget")]
public HutongGames.PlayMaker.FsmEventTarget
completedEventTarget;
[HutongGames.PlayMaker.ActionSection ("[arg3] FsmEvent EventData(string)")]
[HutongGames.PlayMaker.Tooltip ("Event to send when completed.You can get the filePath(StringData) from the GetEventInfo action.")]
public HutongGames.PlayMaker.FsmEvent
completedEvent;
[HutongGames.PlayMaker.ActionSection ("[arg4] FsmEventTarget")]
public HutongGames.PlayMaker.FsmEventTarget
progressEventTarget = new HutongGames.PlayMaker.FsmEventTarget ();
[HutongGames.PlayMaker.ActionSection ("[arg5] FsmEvent EventData(string, float)")]
[HutongGames.PlayMaker.Tooltip ("Event to send when progress.You can get the filePath(StringData) and progress(floatData) from the GetEventInfo action.")]
public HutongGames.PlayMaker.FsmEvent
progressEvent;
[HutongGames.PlayMaker.ActionSection ("[arg6] bool")]
public HutongGames.PlayMaker.FsmBool
refresh;
private Coroutine routine;
public override void Reset ()
{
filepath = null;
completedEventTarget = null;
completedEvent = null;
progressEventTarget.target = HutongGames.PlayMaker.FsmEventTarget.EventTarget.BroadcastAll;
progressEvent = null;
refresh = false;
}
public override void OnEnter ()
{
routine = StartCoroutine (Utils.getFilePathAsync (filepath.Value, (completedString) => {
HutongGames.PlayMaker.Fsm.EventData.StringData = completedString;
Fsm.Event (completedEventTarget, completedEvent);
}, (progressString, progressFloat) => {
HutongGames.PlayMaker.Fsm.EventData.StringData = progressString;
HutongGames.PlayMaker.Fsm.EventData.FloatData = progressFloat;
Fsm.Event (progressEventTarget, progressEvent);
}, refresh.Value));
}
public override void OnExit ()
{
if (routine != null)
StopCoroutine (routine);
}
}
}

Просмотреть файл

@ -1,56 +1,56 @@
using UnityEngine;
using DlibFaceLandmarkDetector.UnityUtils;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static string getVersion ()")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmString), "storeResult")]
public class Utils_getVersion : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmString
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
storeResult.Value = Utils.getVersion ();
}
}
}
using UnityEngine;
using DlibFaceLandmarkDetector.UnityUtils;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static string getVersion ()")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmString), "storeResult")]
public class Utils_getVersion : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] string")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
public HutongGames.PlayMaker.FsmString
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
storeResult.Value = Utils.getVersion ();
}
}
}

Просмотреть файл

@ -1,96 +1,96 @@
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public Texture2D (int width, int height, TextureFormat format, bool mipmap, bool linear)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEnum), "format")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "mipmap")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "linear")]
[HutongGames.PlayMaker.ActionTarget (typeof (Texture2D), "storeResult")]
public class Utils_newTexture2D : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
width;
[HutongGames.PlayMaker.ActionSection ("[arg2] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
height;
[HutongGames.PlayMaker.ActionSection ("[arg3] TextureFormat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (UnityEngine.TextureFormat))]
public HutongGames.PlayMaker.FsmEnum
format;
[HutongGames.PlayMaker.ActionSection ("[arg4] bool")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmBool))]
public HutongGames.PlayMaker.FsmBool
mipmap;
[HutongGames.PlayMaker.ActionSection ("[arg5] bool")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmBool))]
public HutongGames.PlayMaker.FsmBool
linear;
[HutongGames.PlayMaker.ActionSection ("[return] Texture2D(texture)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (Texture2D))]
public HutongGames.PlayMaker.FsmTexture
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
width = 0;
height = 0;
format = null;
mipmap = false;
linear = false;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
storeResult.Value = new Texture2D (width.Value, height.Value, (UnityEngine.TextureFormat)format.Value, mipmap.Value, linear.Value);
}
}
}
using UnityEngine;
using System.Collections.Generic;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public Texture2D (int width, int height, TextureFormat format, bool mipmap, bool linear)")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "width")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmInt), "height")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmEnum), "format")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "mipmap")]
[HutongGames.PlayMaker.ActionTarget (typeof (HutongGames.PlayMaker.FsmBool), "linear")]
[HutongGames.PlayMaker.ActionTarget (typeof (Texture2D), "storeResult")]
public class Utils_newTexture2D : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
width;
[HutongGames.PlayMaker.ActionSection ("[arg2] int")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmInt))]
public HutongGames.PlayMaker.FsmInt
height;
[HutongGames.PlayMaker.ActionSection ("[arg3] TextureFormat")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (UnityEngine.TextureFormat))]
public HutongGames.PlayMaker.FsmEnum
format;
[HutongGames.PlayMaker.ActionSection ("[arg4] bool")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmBool))]
public HutongGames.PlayMaker.FsmBool
mipmap;
[HutongGames.PlayMaker.ActionSection ("[arg5] bool")]
[HutongGames.PlayMaker.RequiredField]
[HutongGames.PlayMaker.ObjectType (typeof (HutongGames.PlayMaker.FsmBool))]
public HutongGames.PlayMaker.FsmBool
linear;
[HutongGames.PlayMaker.ActionSection ("[return] Texture2D(texture)")]
[HutongGames.PlayMaker.UIHint (HutongGames.PlayMaker.UIHint.Variable)]
[HutongGames.PlayMaker.ObjectType (typeof (Texture2D))]
public HutongGames.PlayMaker.FsmTexture
storeResult;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
width = 0;
height = 0;
format = null;
mipmap = false;
linear = false;
storeResult = null;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame)
{
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
storeResult.Value = new Texture2D (width.Value, height.Value, (UnityEngine.TextureFormat)format.Value, mipmap.Value, linear.Value);
}
}
}

Просмотреть файл

@ -1,62 +1,62 @@
using UnityEngine;
using DlibFaceLandmarkDetector.UnityUtils;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void setDebugMode (bool debugMode, bool throwException = false)")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmBool), "debugMode")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmBool), "throwException")]
public class Utils_setDebugMode : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] bool")]
[HutongGames.PlayMaker.RequiredField]
public HutongGames.PlayMaker.FsmBool
debugMode;
[HutongGames.PlayMaker.ActionSection ("[arg2] bool")]
[HutongGames.PlayMaker.RequiredField]
public HutongGames.PlayMaker.FsmBool
throwException;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
debugMode = false;
throwException = false;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
Utils.setDebugMode (debugMode.Value, throwException.Value);
}
}
}
using UnityEngine;
using DlibFaceLandmarkDetector.UnityUtils;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
[HutongGames.PlayMaker.ActionCategory ("DlibFaceLandmarkDetector")]
[HutongGames.PlayMaker.Tooltip ("public static void setDebugMode (bool debugMode, bool throwException = false)")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmBool), "debugMode")]
[HutongGames.PlayMaker.ActionTarget (typeof(HutongGames.PlayMaker.FsmBool), "throwException")]
public class Utils_setDebugMode : HutongGames.PlayMaker.FsmStateAction
{
[HutongGames.PlayMaker.ActionSection ("[arg1] bool")]
[HutongGames.PlayMaker.RequiredField]
public HutongGames.PlayMaker.FsmBool
debugMode;
[HutongGames.PlayMaker.ActionSection ("[arg2] bool")]
[HutongGames.PlayMaker.RequiredField]
public HutongGames.PlayMaker.FsmBool
throwException;
[HutongGames.PlayMaker.ActionSection ("")]
[Tooltip ("Repeat every frame.")]
public bool
everyFrame;
public override void Reset ()
{
debugMode = false;
throwException = false;
everyFrame = false;
}
public override void OnEnter ()
{
DoProcess ();
if (!everyFrame) {
Finish ();
}
}
public override void OnUpdate ()
{
DoProcess ();
}
void DoProcess ()
{
Utils.setDebugMode (debugMode.Value, throwException.Value);
}
}
}

Просмотреть файл

@ -1,23 +1,23 @@
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class DisposableDlibObject : DlibObject
{
public DisposableDlibObject ()
{
}
public DisposableDlibObject (DlibFaceLandmarkDetector.DisposableDlibObject nativeObj)
: base (nativeObj)
{
}
}
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class DisposableDlibObject : DlibObject
{
public DisposableDlibObject ()
{
}
public DisposableDlibObject (DlibFaceLandmarkDetector.DisposableDlibObject nativeObj)
: base (nativeObj)
{
}
}
}

Просмотреть файл

@ -1,94 +1,94 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class DlibFaceLandmarkDetectorPlayMakerActionsUtils
{
public static V GetWrappedObject<T, V> (HutongGames.PlayMaker.FsmObject fsmObject) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
return (V)((T)fsmObject.Value).wrappedObject;
}
public static void ConvertFsmArrayToList<T, V> (HutongGames.PlayMaker.FsmArray fsmArray, List<V> list) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
for (int i = 0; i < fsmArray.Length; i++)
{
if (fsmArray.Values[i] != null)
{
list.Add ((V)((T)fsmArray.Values[i]).wrappedObject);
}
else
{
}
}
}
public static void ConvertListToFsmArray<V, T> (List<V> list, HutongGames.PlayMaker.FsmArray fsmArray) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, new ()
{
if (fsmArray.Length != list.Count)
{
fsmArray.Resize (list.Count);
}
for (int i = 0; i < list.Count; i++)
{
if (fsmArray.Values[i] != null)
{
T tmp = (T)fsmArray.Values[i];
tmp.wrappedObject = list[i];
}
else
{
T tmp = new T ();
tmp.wrappedObject = list[i];
fsmArray.Set (i, tmp);
}
}
}
public static void ConvertFsmArrayToArray<T, V> (HutongGames.PlayMaker.FsmArray fsmArray, V[] array) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
for (int i = 0; i < fsmArray.Length; i++)
{
if (fsmArray.Values[i] != null)
{
array[i] = (V)((T)fsmArray.Values[i]).wrappedObject;
}
else
{
}
}
}
public static void ConvertArrayToFsmArray<V, T> (V[] array, HutongGames.PlayMaker.FsmArray fsmArray) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, new ()
{
if (fsmArray.Length != array.Length)
{
fsmArray.Resize (array.Length);
}
for (int i = 0; i < array.Length; i++)
{
if (fsmArray.Values[i] != null)
{
T tmp = (T)fsmArray.Values[i];
tmp.wrappedObject = array[i];
}
else
{
T tmp = new T ();
tmp.wrappedObject = array[i];
fsmArray.Set (i, tmp);
}
}
}
}
}
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class DlibFaceLandmarkDetectorPlayMakerActionsUtils
{
public static V GetWrappedObject<T, V> (HutongGames.PlayMaker.FsmObject fsmObject) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
return (V)((T)fsmObject.Value).wrappedObject;
}
public static void ConvertFsmArrayToList<T, V> (HutongGames.PlayMaker.FsmArray fsmArray, List<V> list) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
for (int i = 0; i < fsmArray.Length; i++)
{
if (fsmArray.Values[i] != null)
{
list.Add ((V)((T)fsmArray.Values[i]).wrappedObject);
}
else
{
}
}
}
public static void ConvertListToFsmArray<V, T> (List<V> list, HutongGames.PlayMaker.FsmArray fsmArray) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, new ()
{
if (fsmArray.Length != list.Count)
{
fsmArray.Resize (list.Count);
}
for (int i = 0; i < list.Count; i++)
{
if (fsmArray.Values[i] != null)
{
T tmp = (T)fsmArray.Values[i];
tmp.wrappedObject = list[i];
}
else
{
T tmp = new T ();
tmp.wrappedObject = list[i];
fsmArray.Set (i, tmp);
}
}
}
public static void ConvertFsmArrayToArray<T, V> (HutongGames.PlayMaker.FsmArray fsmArray, V[] array) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
for (int i = 0; i < fsmArray.Length; i++)
{
if (fsmArray.Values[i] != null)
{
array[i] = (V)((T)fsmArray.Values[i]).wrappedObject;
}
else
{
}
}
}
public static void ConvertArrayToFsmArray<V, T> (V[] array, HutongGames.PlayMaker.FsmArray fsmArray) where T : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject, new ()
{
if (fsmArray.Length != array.Length)
{
fsmArray.Resize (array.Length);
}
for (int i = 0; i < array.Length; i++)
{
if (fsmArray.Values[i] != null)
{
T tmp = (T)fsmArray.Values[i];
tmp.wrappedObject = array[i];
}
else
{
T tmp = new T ();
tmp.wrappedObject = array[i];
fsmArray.Set (i, tmp);
}
}
}
}
}

Просмотреть файл

@ -1,24 +1,24 @@
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class DlibObject : UnityEngine.Object
{
public System.Object wrappedObject;
public DlibObject ()
{
}
public DlibObject (System.Object wrappedObject)
{
this.wrappedObject = wrappedObject;
}
}
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class DlibObject : UnityEngine.Object
{
public System.Object wrappedObject;
public DlibObject ()
{
}
public DlibObject (System.Object wrappedObject)
{
this.wrappedObject = wrappedObject;
}
}
}

Просмотреть файл

@ -1,23 +1,23 @@
using UnityEngine;
using System.Collections;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class Double : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
public Double ()
{
}
public Double (System.Double nativeObj)
: base (nativeObj)
{
}
}
}
using UnityEngine;
using System.Collections;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class Double : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
public Double ()
{
}
public Double (System.Double nativeObj)
: base (nativeObj)
{
}
}
}

Просмотреть файл

@ -1,23 +1,23 @@
using UnityEngine;
using System.Collections;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class DoubleArray : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
public DoubleArray ()
{
}
public DoubleArray (System.Double[] nativeObj)
: base (nativeObj)
{
}
}
}
using UnityEngine;
using System.Collections;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class DoubleArray : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
public DoubleArray ()
{
}
public DoubleArray (System.Double[] nativeObj)
: base (nativeObj)
{
}
}
}

Просмотреть файл

@ -1,53 +1,53 @@
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
//using DlibFaceLandmarkDetectorPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public class DlibObjectPropertyDrawer : ObjectPropertyDrawer
{
public override Object OnGUI (GUIContent label, Object obj, bool isSceneObject, params object[] attributes)
{
if (obj is DlibObject)
{
GUILayout.BeginVertical ();
EditorGUILayout.LabelField (label);
EditorGUI.indentLevel++;
DlibObject opencvObject = obj as DlibObject;
if (opencvObject.wrappedObject != null)
{
EditorGUILayout.SelectableLabel (opencvObject.wrappedObject.ToString ());
}
EditorGUI.indentLevel--;
GUILayout.EndVertical ();
}
else
{
GUILayout.BeginHorizontal ();
EditorGUILayout.LabelField (label);
EditorGUILayout.LabelField ("null", GUILayout.MinWidth (20));
GUILayout.EndHorizontal ();
}
return obj;
}
}
}
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
//using DlibFaceLandmarkDetectorPlayMakerActions;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DlibObject))]
public class DlibObjectPropertyDrawer : ObjectPropertyDrawer
{
public override Object OnGUI (GUIContent label, Object obj, bool isSceneObject, params object[] attributes)
{
if (obj is DlibObject)
{
GUILayout.BeginVertical ();
EditorGUILayout.LabelField (label);
EditorGUI.indentLevel++;
DlibObject opencvObject = obj as DlibObject;
if (opencvObject.wrappedObject != null)
{
EditorGUILayout.SelectableLabel (opencvObject.wrappedObject.ToString ());
}
EditorGUI.indentLevel--;
GUILayout.EndVertical ();
}
else
{
GUILayout.BeginHorizontal ();
EditorGUILayout.LabelField (label);
EditorGUILayout.LabelField ("null", GUILayout.MinWidth (20));
GUILayout.EndHorizontal ();
}
return obj;
}
}
}

Просмотреть файл

@ -1,17 +1,17 @@
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public class DoubleArrayObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.DoubleArray))]
public class DoubleArrayObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}

Просмотреть файл

@ -1,17 +1,17 @@
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public class DoubleObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Double))]
public class DoubleObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}

Просмотреть файл

@ -1,17 +1,17 @@
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public class FaceLandmarkDetectorObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))]
public class FaceLandmarkDetectorObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}

Просмотреть файл

@ -1,17 +1,17 @@
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public class LongObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.Long))]
public class LongObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}

Просмотреть файл

@ -1,17 +1,17 @@
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public class RectDetectionObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}
using System;
using UnityEngine;
using UnityEditor;
using HutongGames.PlayMakerEditor;
using Object = UnityEngine.Object;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
// Test with action that uses an FsmObject variable of AudioClip type. E.g., Set Audio Clip
[ObjectPropertyDrawer (typeof (DlibFaceLandmarkDetectorPlayMakerActions.RectDetection))]
public class RectDetectionObjectPropertyDrawer : DlibObjectPropertyDrawer
{
}
}

Просмотреть файл

@ -1,23 +1,23 @@
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class FaceLandmarkDetector : DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject
{
public FaceLandmarkDetector ()
{
}
public FaceLandmarkDetector (DlibFaceLandmarkDetector.FaceLandmarkDetector nativeObj)
: base (nativeObj)
{
}
}
}
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class FaceLandmarkDetector : DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject
{
public FaceLandmarkDetector ()
{
}
public FaceLandmarkDetector (DlibFaceLandmarkDetector.FaceLandmarkDetector nativeObj)
: base (nativeObj)
{
}
}
}

Просмотреть файл

@ -1,23 +1,23 @@
using UnityEngine;
using System.Collections;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class Long : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
public Long ()
{
}
public Long (System.Int64 nativeObj)
: base (nativeObj)
{
}
}
}
using UnityEngine;
using System.Collections;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class Long : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
public Long ()
{
}
public Long (System.Int64 nativeObj)
: base (nativeObj)
{
}
}
}

Просмотреть файл

@ -1,23 +1,23 @@
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class RectDetection : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
public RectDetection ()
{
}
public RectDetection (DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection nativeObj)
: base (nativeObj)
{
}
}
}
using UnityEngine;
using System.Collections;
using DlibFaceLandmarkDetector;
namespace DlibFaceLandmarkDetectorPlayMakerActions
{
public class RectDetection : DlibFaceLandmarkDetectorPlayMakerActions.DlibObject
{
public RectDetection ()
{
}
public RectDetection (DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection nativeObj)
: base (nativeObj)
{
}
}
}

Просмотреть файл

@ -1,23 +1,23 @@
PlayMakerActions for DlibFaceLandmarkDetector
====================
Overview
-----
[https://assetstore.unity.com/packages/tools/visual-scripting/playmakeractions-for-dlibfacelandmarkdetector-95863](https://assetstore.unity.com/packages/tools/visual-scripting/playmakeractions-for-dlibfacelandmarkdetector-95863?aid=1011l4ehR)
Environment
-----
[DlibFaceLandmarkDetector](https://assetstore.unity.com/packages/tools/integration/dlib-facelandmark-detector-64314?aid=1011l4ehR)
[Playmaker](https://assetstore.unity.com/packages/tools/visual-scripting/playmaker-368?aid=1011l4ehR)
Manual
-----
[ReadMe.pdf](/Assets/DlibFaceLandmarkDetectorPlayMakerActions/ReadMe.pdf)
![Texture2DExample.PNG](Texture2DExample.PNG)
![Texture2DExampleActions.png](Texture2DExampleActions.png)
![WebCamTextureExampleActions.png](WebCamTextureExampleActions.png)
![Texture2DToMatExampleActions.png](Texture2DToMatExampleActions.png)
![WebCamTextureToMatHelperExampleActions.png](WebCamTextureToMatHelperExampleActions.png)
![VideoCaptureExampleActions.png](VideoCaptureExampleActions.png)
PlayMakerActions for DlibFaceLandmarkDetector
====================
Overview
-----
[https://assetstore.unity.com/packages/tools/visual-scripting/playmakeractions-for-dlibfacelandmarkdetector-95863](https://assetstore.unity.com/packages/tools/visual-scripting/playmakeractions-for-dlibfacelandmarkdetector-95863?aid=1011l4ehR)
Environment
-----
[DlibFaceLandmarkDetector](https://assetstore.unity.com/packages/tools/integration/dlib-facelandmark-detector-64314?aid=1011l4ehR)
[Playmaker](https://assetstore.unity.com/packages/tools/visual-scripting/playmaker-368?aid=1011l4ehR)
Manual
-----
[ReadMe.pdf](/Assets/DlibFaceLandmarkDetectorPlayMakerActions/ReadMe.pdf)
![Texture2DExample.PNG](Texture2DExample.PNG)
![Texture2DExampleActions.png](Texture2DExampleActions.png)
![WebCamTextureExampleActions.png](WebCamTextureExampleActions.png)
![Texture2DToMatExampleActions.png](Texture2DToMatExampleActions.png)
![WebCamTextureToMatHelperExampleActions.png](WebCamTextureToMatHelperExampleActions.png)
![VideoCaptureExampleActions.png](VideoCaptureExampleActions.png)