UnityEngine.HumanPoseHandler.SetHumanPose C# (CSharp) Method

SetHumanPose() public method

public SetHumanPose ( HumanPose &humanPose ) : void
humanPose HumanPose
return void
        public void SetHumanPose(ref HumanPose humanPose)
        {
            humanPose.Init();
            if (!this.Internal_SetHumanPose(ref humanPose.bodyPosition, ref humanPose.bodyRotation, humanPose.muscles))
            {
                Debug.LogWarning("HumanPoseHandler is not initialized properly");
            }
        }
    }

Usage Example

コード例 #1
0
 static public int SetHumanPose(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.HumanPoseHandler self = (UnityEngine.HumanPoseHandler)checkSelf(l);
         UnityEngine.HumanPose        a1;
         checkValueType(l, 2, out a1);
         self.SetHumanPose(ref a1);
         pushValue(l, true);
         pushValue(l, a1);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
All Usage Examples Of UnityEngine.HumanPoseHandler::SetHumanPose