docs.unity3d.com
    目次を表示する/隠す

    Struct FaceBlendShapePose

    Stores a face pose as a set of blend shape weights.

    Namespace: Unity.LiveCapture.ARKitFaceCapture
    Syntax
    [Serializable]
    public struct FaceBlendShapePose

    Fields

    BrowDownLeft

    Declaration
    [Range(0F, 1F)]
    public float BrowDownLeft
    Field Value
    Type Description
    Single

    BrowDownRight

    Declaration
    [Range(0F, 1F)]
    public float BrowDownRight
    Field Value
    Type Description
    Single

    BrowInnerUp

    Declaration
    [Range(0F, 1F)]
    public float BrowInnerUp
    Field Value
    Type Description
    Single

    BrowOuterUpLeft

    Declaration
    [Range(0F, 1F)]
    public float BrowOuterUpLeft
    Field Value
    Type Description
    Single

    BrowOuterUpRight

    Declaration
    [Range(0F, 1F)]
    public float BrowOuterUpRight
    Field Value
    Type Description
    Single

    CheekPuff

    Declaration
    [Range(0F, 1F)]
    public float CheekPuff
    Field Value
    Type Description
    Single

    CheekSquintLeft

    Declaration
    [Range(0F, 1F)]
    public float CheekSquintLeft
    Field Value
    Type Description
    Single

    CheekSquintRight

    Declaration
    [Range(0F, 1F)]
    public float CheekSquintRight
    Field Value
    Type Description
    Single

    EyeBlinkLeft

    Declaration
    [Range(0F, 1F)]
    public float EyeBlinkLeft
    Field Value
    Type Description
    Single

    EyeBlinkRight

    Declaration
    [Range(0F, 1F)]
    public float EyeBlinkRight
    Field Value
    Type Description
    Single

    EyeLookDownLeft

    Declaration
    [Range(0F, 1F)]
    public float EyeLookDownLeft
    Field Value
    Type Description
    Single

    EyeLookDownRight

    Declaration
    [Range(0F, 1F)]
    public float EyeLookDownRight
    Field Value
    Type Description
    Single

    EyeLookInLeft

    Declaration
    [Range(0F, 1F)]
    public float EyeLookInLeft
    Field Value
    Type Description
    Single

    EyeLookInRight

    Declaration
    [Range(0F, 1F)]
    public float EyeLookInRight
    Field Value
    Type Description
    Single

    EyeLookOutLeft

    Declaration
    [Range(0F, 1F)]
    public float EyeLookOutLeft
    Field Value
    Type Description
    Single

    EyeLookOutRight

    Declaration
    [Range(0F, 1F)]
    public float EyeLookOutRight
    Field Value
    Type Description
    Single

    EyeLookUpLeft

    Declaration
    [Range(0F, 1F)]
    public float EyeLookUpLeft
    Field Value
    Type Description
    Single

    EyeLookUpRight

    Declaration
    [Range(0F, 1F)]
    public float EyeLookUpRight
    Field Value
    Type Description
    Single

    EyeSquintLeft

    Declaration
    [Range(0F, 1F)]
    public float EyeSquintLeft
    Field Value
    Type Description
    Single

    EyeSquintRight

    Declaration
    [Range(0F, 1F)]
    public float EyeSquintRight
    Field Value
    Type Description
    Single

    EyeWideLeft

    Declaration
    [Range(0F, 1F)]
    public float EyeWideLeft
    Field Value
    Type Description
    Single

    EyeWideRight

    Declaration
    [Range(0F, 1F)]
    public float EyeWideRight
    Field Value
    Type Description
    Single

    JawForward

    Declaration
    [Range(0F, 1F)]
    public float JawForward
    Field Value
    Type Description
    Single

    JawLeft

    Declaration
    [Range(0F, 1F)]
    public float JawLeft
    Field Value
    Type Description
    Single

    JawOpen

    Declaration
    [Range(0F, 1F)]
    public float JawOpen
    Field Value
    Type Description
    Single

    JawRight

    Declaration
    [Range(0F, 1F)]
    public float JawRight
    Field Value
    Type Description
    Single

    MouthClose

    Declaration
    [Range(0F, 1F)]
    public float MouthClose
    Field Value
    Type Description
    Single

    MouthDimpleLeft

    Declaration
    [Range(0F, 1F)]
    public float MouthDimpleLeft
    Field Value
    Type Description
    Single

    MouthDimpleRight

    Declaration
    [Range(0F, 1F)]
    public float MouthDimpleRight
    Field Value
    Type Description
    Single

    MouthFrownLeft

    Declaration
    [Range(0F, 1F)]
    public float MouthFrownLeft
    Field Value
    Type Description
    Single

    MouthFrownRight

    Declaration
    [Range(0F, 1F)]
    public float MouthFrownRight
    Field Value
    Type Description
    Single

    MouthFunnel

    Declaration
    [Range(0F, 1F)]
    public float MouthFunnel
    Field Value
    Type Description
    Single

    MouthLeft

    Declaration
    [Range(0F, 1F)]
    public float MouthLeft
    Field Value
    Type Description
    Single

    MouthLowerDownLeft

    Declaration
    [Range(0F, 1F)]
    public float MouthLowerDownLeft
    Field Value
    Type Description
    Single

    MouthLowerDownRight

    Declaration
    [Range(0F, 1F)]
    public float MouthLowerDownRight
    Field Value
    Type Description
    Single

    MouthPressLeft

    Declaration
    [Range(0F, 1F)]
    public float MouthPressLeft
    Field Value
    Type Description
    Single

    MouthPressRight

    Declaration
    [Range(0F, 1F)]
    public float MouthPressRight
    Field Value
    Type Description
    Single

    MouthPucker

    Declaration
    [Range(0F, 1F)]
    public float MouthPucker
    Field Value
    Type Description
    Single

    MouthRight

    Declaration
    [Range(0F, 1F)]
    public float MouthRight
    Field Value
    Type Description
    Single

    MouthRollLower

    Declaration
    [Range(0F, 1F)]
    public float MouthRollLower
    Field Value
    Type Description
    Single

    MouthRollUpper

    Declaration
    [Range(0F, 1F)]
    public float MouthRollUpper
    Field Value
    Type Description
    Single

    MouthShrugLower

    Declaration
    [Range(0F, 1F)]
    public float MouthShrugLower
    Field Value
    Type Description
    Single

    MouthShrugUpper

    Declaration
    [Range(0F, 1F)]
    public float MouthShrugUpper
    Field Value
    Type Description
    Single

    MouthSmileLeft

    Declaration
    [Range(0F, 1F)]
    public float MouthSmileLeft
    Field Value
    Type Description
    Single

    MouthSmileRight

    Declaration
    [Range(0F, 1F)]
    public float MouthSmileRight
    Field Value
    Type Description
    Single

    MouthStretchLeft

    Declaration
    [Range(0F, 1F)]
    public float MouthStretchLeft
    Field Value
    Type Description
    Single

    MouthStretchRight

    Declaration
    [Range(0F, 1F)]
    public float MouthStretchRight
    Field Value
    Type Description
    Single

    MouthUpperUpLeft

    Declaration
    [Range(0F, 1F)]
    public float MouthUpperUpLeft
    Field Value
    Type Description
    Single

    MouthUpperUpRight

    Declaration
    [Range(0F, 1F)]
    public float MouthUpperUpRight
    Field Value
    Type Description
    Single

    NoseSneerLeft

    Declaration
    [Range(0F, 1F)]
    public float NoseSneerLeft
    Field Value
    Type Description
    Single

    NoseSneerRight

    Declaration
    [Range(0F, 1F)]
    public float NoseSneerRight
    Field Value
    Type Description
    Single

    ShapeCount

    The number of supported blend shapes.

    Declaration
    public const int ShapeCount = 52
    Field Value
    Type Description
    Int32

    TongueOut

    Declaration
    [Range(0F, 1F)]
    public float TongueOut
    Field Value
    Type Description
    Single

    Properties

    Item[Int32]

    The pose value for a blend shape at the given index.

    Declaration
    public float this[int index] { get; set; }
    Parameters
    Type Name Description
    Int32 index

    The blend shape index.

    Property Value
    Type Description
    Single

    Shapes

    The face blend shapes, excluding shapes with a negative value.

    Declaration
    public static readonly FaceBlendShape[] Shapes { get; }
    Property Value
    Type Description
    FaceBlendShape[]

    Methods

    FlipHorizontally()

    Horizontally mirrors the face pose.

    Declaration
    public void FlipHorizontally()
    Remarks

    ARKit's default blend shapes are set so that 'right' indicates the right side of the face when viewing from the front.

    GetValue(FaceBlendShape)

    Gets the pose value for a blend shape.

    Declaration
    public float GetValue(FaceBlendShape location)
    Parameters
    Type Name Description
    FaceBlendShape location

    The blend shape to get the value of.

    Returns
    Type Description
    Single

    The normalized blend shape influence.

    LerpUnclamped(in FaceBlendShapePose, in FaceBlendShapePose, Single, out FaceBlendShapePose)

    Linearly interpolates between a and b by factor t.

    Declaration
    public static void LerpUnclamped(in FaceBlendShapePose a, in FaceBlendShapePose b, float t, out FaceBlendShapePose result)
    Parameters
    Type Name Description
    FaceBlendShapePose a

    The pose to interpolate from.

    FaceBlendShapePose b

    To pose to interpolate to.

    Single t

    The interpolation factor.

    FaceBlendShapePose result

    The interpolated pose.

    Remarks


    • When t is 0 result is set to a.
    • When t is 1 result is set to b.
    • When t is 0.5 result is set to the midpoint of a and b.

    SetValue(FaceBlendShape, Single)

    Sets the pose value for a blend shape.

    Declaration
    public void SetValue(FaceBlendShape location, float value)
    Parameters
    Type Name Description
    FaceBlendShape location

    The blend shape to set the value of.

    Single value

    The normalized blend shape influence.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)