public/0.12.xpublic/0.8.xpublic/0.9.xpublic/0.11.x

    Show / Hide Table of Contents

    Class UUxtTransformConstraint

    Base class for all constraints

    Usage: Derive from this component and implement ApplyConstraint and GetConstraintType. Custom constraints will automatically be picked up by a UxtConstraintManager on the same actor

    Inheritance
    System::Object
    USceneComponent
    UUxtTransformConstraint
    Namespace:
    Assembly: .dll
    Syntax
    public: class UUxtTransformConstraint

    Fields

    | Improve this Doc View Source

    HandType

    Whether this constraint applies to one hand manipulation, two hand manipulation or both.

    Declaration
    public: int32 HandType= static_cast<int32>(EUxtGenericManipulationMode::OneHanded | EUxtGenericManipulationMode::TwoHanded)
    Field Value
    Type Description
    int32
    | Improve this Doc View Source

    InteractionMode

    Whether this constraint applies to near manipulation, far manipulation or both.

    Declaration
    public: int32 InteractionMode= static_cast<int32>(EUxtInteractionMode::Near | EUxtInteractionMode::Far)
    Field Value
    Type Description
    int32
    | Improve this Doc View Source

    TargetComponent

    The component to transform, will default to the root scene component if not specified

    Declaration
    public: FComponentReference TargetComponent
    Field Value
    Type Description
    FComponentReference
    | Improve this Doc View Source

    WorldPoseOnManipulationStart

    Declaration
    protected: FTransform WorldPoseOnManipulationStart
    Field Value
    Type Description
    FTransform

    Methods

    | Improve this Doc View Source

    ApplyConstraint(FTransform &Transform)

    Applies constraints to transforms during manipulation

    Declaration
    public: virtual void ApplyConstraint(FTransform &Transform) const PURE_VIRTUAL(
    Parameters
    Type Name Description
    FTransform & Transform
    | Improve this Doc View Source

    GetConstraintType()

    Enabled manipulation modes.

    Declaration
    public: virtual EUxtTransformMode GetConstraintType() const PURE_VIRTUAL(
    Returns
    Type Description
    EUxtTransformMode
    | Improve this Doc View Source

    Initialize(const FTransform &WorldPose)

    Intended to be called on manipulation started

    Declaration
    public: virtual void virtual void Initialize(const FTransform &WorldPose)
    Parameters
    Type Name Description
    const FTransform & WorldPose
    Returns
    Type Description
    void virtual void
    • Improve this Doc
    • View Source
    In This Article
    • Fields
      • HandType
      • InteractionMode
      • TargetComponent
      • WorldPoseOnManipulationStart
    • Methods
      • ApplyConstraint(FTransform &Transform)
      • GetConstraintType()
      • Initialize(const FTransform &WorldPose)
    Back to top Generated by DocFX