UTransformProxy::AddComponentCustom

Add a component sub-object to the proxy set with custom transform access functions.

Choose your operating system:

Windows

macOS

Linux

Warnings

  • The internal shared transform is regenerated each time a component is added

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/TransformProxy.h

Include

#include "BaseGizmos/TransformProxy.h"

Source

/Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/TransformProxy.cpp

Syntax

virtual void AddComponentCustom
(
    USceneComponent * Component,
    TUniqueFunction< FTransform)> GetTransformFunc,
    TUniqueFunction< void)> SetTransformFunc,
    int64 UserDefinedIndex,
    bool bModifyComponentOnTransform
)

Remarks

Add a component sub-object to the proxy set with custom transform access functions. This can be used to do things like add an ISM Instance to the TransformProxy.

The internal shared transform is regenerated each time a component is added

Parameters

Parameter

Description

GetTransformFunc

return current transform

SetTransformFunc

set current transform

UserDefinedIndex

an arbitrary integer that can be provided, not currently used but may be useful in subclasses

bModifyComponentOnTransform

if true, Component->Modify() is called before the Component transform is updated