Navigation
API > API/Editor > API/Editor/Persona
References
| Module | Persona |
| Header | /Engine/Source/Editor/Persona/Public/PhysicsAssetRenderUtils.h |
| Include | #include "PhysicsAssetRenderUtils.h" |
Syntax
struct FPhysicsAssetRenderSettings
Remarks
Per Physics Asset parameters that determine how debug draw functions should render that asset in an editor viewport.
These parameters are used across different editor modes to ensure the debug draw is consistent. This makes it easier to create or debug physics assets whilst switching between editor modes.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bHideKinematicBodies | ||
| bool | bHideSimulatedBodies | ||
| TObjectPtr< class UMaterialInterface > | BoneNoCollisionMaterial | ||
| FColor | BoneUnselectedColor | Draw colors. | |
| TObjectPtr< class UMaterialInterface > | BoneUnselectedMaterial | Materials. | |
| bool | bRenderOnlySelectedConstraints | ||
| bool | bShowCOM | ||
| bool | bShowConstraintsAsPoints | ||
| EPhysicsAssetEditorCollisionViewMode | CollisionViewMode | Physics Asset Editor Viewport Options. | |
| FColor | COMRenderColor | ||
| float | COMRenderSize | ||
| float | ConstraintDrawSize | ||
| EConstraintTransformComponentFlags | ConstraintTransformComponentDisplayRelativeToDefaultFlags | Flags that determine which parts of the constraints transforms (parent/child position/rotation) should be displayed as an offset from the default (snapped) transforms. | |
| EPhysicsAssetEditorConstraintViewMode | ConstraintViewMode | ||
| EConstraintTransformComponentFlags | ConstraintViewportManipulationFlags | Flags that determine which parts of the constraints transforms (parent frame, child frame, position and rotation) are currently begin manipulated in the viewport. | |
| TArray< int32 > | HiddenBodies | ||
| TArray< int32 > | HiddenConstraints | ||
| float | InfluenceLineLength | ||
| FColor | NoCollisionColor | ||
| float | PhysicsBlend |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | |||
| EConstraintTransformComponentFlags | Returns a set of flags describing which components of the selected constraint's transforms are being manipulated in the view port. | ||
| void | HideAll
(
const UPhysicsAsset*const PhysicsAsset |
||
| void | HideAllBodies
(
const UPhysicsAsset*const PhysicsAsset |
||
| void | HideAllConstraints
(
const UPhysicsAsset*const PhysicsAsset |
||
| void | HideBody
(
const int32 BodyIndex |
||
| void | HideConstraint
(
const int32 ConstraintIndex |
||
| void | InitPhysicsAssetRenderSettings
(
UMaterialInterface* InBoneUnselectedMaterial, |
||
| bool | IsBodyHidden
(
const int32 BodyIndex |
Accessors/helper methods | |
| bool | IsConstraintHidden
(
const int32 ConstraintIndex |
||
| bool | IsDisplayingConstraintTransformComponentRelativeToDefault
(
const EConstraintTransformComponentFlags ComponentFlags |
Returns true if all the constraint transform components specified by the flags should be displayed as an offset from the default (snapped) transforms. | |
| void | |||
| void | SetDisplayConstraintTransformComponentRelativeToDefault
(
const EConstraintTransformComponentFlags ComponentFlags, |
Set how the constraint transform components specified by the flags should be displayed, in the frame of their associated physics body (false) or as an offset from the default (snapped) transforms (true). | |
| void | SetHiddenBodies
(
const TArray< int32 >& InHiddenBodies |
||
| void | SetHiddenConstraints
(
const TArray< int32 >& InHiddenConstraints |
||
| void | ShowAll () |
||
| void | |||
| void | |||
| void | ShowBody
(
const int32 BodyIndex |
||
| void | ShowConstraint
(
const int32 ConstraintIndex |
||
| void | ToggleShowAllBodies
(
const UPhysicsAsset*const PhysicsAsset |
||
| void | ToggleShowAllConstraints
(
const UPhysicsAsset*const PhysicsAsset |
||
| void | ToggleShowBody
(
const int32 BodyIndex |
||
| void | ToggleShowConstraint
(
const int32 ConstraintIndex |