Navigation
API > API/Editor > API/Editor/Persona
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.
| Name | FPhysicsAssetRenderSettings |
| Type | struct |
| Header File | /Engine/Source/Editor/Persona/Public/PhysicsAssetRenderUtils.h |
| Include Path | #include "PhysicsAssetRenderUtils.h" |
Syntax
USTRUCT ()
struct FPhysicsAssetRenderSettings
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPhysicsAssetRenderSettings() |
PhysicsAssetRenderUtils.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDrawViolatedLimits | bool | PhysicsAssetRenderUtils.h | ||
| bHideBodyMass | bool | PhysicsAssetRenderUtils.h | ||
| bHideCenterOfMassForKinematicBodies | bool | PhysicsAssetRenderUtils.h | ||
| bHideKinematicBodies | bool | PhysicsAssetRenderUtils.h | ||
| bHideSimulatedBodies | bool | PhysicsAssetRenderUtils.h | ||
| bHighlightOverlapingBodies | bool | PhysicsAssetRenderUtils.h | ||
| BoneNoCollisionMaterial | TObjectPtr< class UMaterialInterface > | PhysicsAssetRenderUtils.h | ||
| BoneUnselectedColor | FColor | Draw colors. | PhysicsAssetRenderUtils.h | |
| BoneUnselectedMaterial | TObjectPtr< class UMaterialInterface > | Materials. | PhysicsAssetRenderUtils.h | |
| bRenderOnlySelectedConstraints | bool | PhysicsAssetRenderUtils.h | ||
| bShowConstraintsAsPoints | bool | PhysicsAssetRenderUtils.h | ||
| CenterOfMassViewMode | EPhysicsAssetEditorCenterOfMassViewMode | Physics Asset Editor Viewport Options. | PhysicsAssetRenderUtils.h | |
| CollisionViewMode | EPhysicsAssetEditorCollisionViewMode | PhysicsAssetRenderUtils.h | ||
| COMRenderColor | FColor | PhysicsAssetRenderUtils.h | ||
| COMRenderLineThickness | float | PhysicsAssetRenderUtils.h | ||
| COMRenderMassTextOffsetScreenspace | float | PhysicsAssetRenderUtils.h | ||
| COMRenderSize | float | PhysicsAssetRenderUtils.h | ||
| ConstraintDrawSize | float | PhysicsAssetRenderUtils.h | ||
| ConstraintTransformComponentDisplayRelativeToDefaultFlags | EConstraintTransformComponentFlags | Flags that determine which parts of the constraints transforms (parent/child position/rotation) should be displayed as an offset from the default (snapped) transforms. | PhysicsAssetRenderUtils.h | |
| ConstraintViewMode | EPhysicsAssetEditorConstraintViewMode | PhysicsAssetRenderUtils.h | ||
| ConstraintViewportManipulationFlags | EConstraintTransformComponentFlags | Flags that determine which parts of the constraints transforms (parent frame, child frame, position and rotation) are currently begin manipulated in the viewport. | PhysicsAssetRenderUtils.h |
|
| HiddenBodies | TArray< int32 > | PhysicsAssetRenderUtils.h | ||
| HiddenConstraints | TArray< int32 > | PhysicsAssetRenderUtils.h | ||
| InfluenceLineLength | float | PhysicsAssetRenderUtils.h | ||
| NoCollisionColor | FColor | PhysicsAssetRenderUtils.h | ||
| PhysicsBlend | float | PhysicsAssetRenderUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AreAnyBodiesHidden() |
PhysicsAssetRenderUtils.h | ||
bool AreAnyConstraintsHidden() |
PhysicsAssetRenderUtils.h | ||
EConstraintTransformComponentFlags GetConstraintViewportManipulationFlags() |
Returns a set of flags describing which components of the selected constraint's transforms are being manipulated in the view port. | PhysicsAssetRenderUtils.h | |
void HideAll
(
const UPhysicsAsset*const PhysicsAsset |
PhysicsAssetRenderUtils.h | ||
void HideAllBodies
(
const UPhysicsAsset*const PhysicsAsset |
PhysicsAssetRenderUtils.h | ||
void HideAllConstraints
(
const UPhysicsAsset*const PhysicsAsset |
PhysicsAssetRenderUtils.h | ||
void HideBody
(
const int32 BodyIndex |
PhysicsAssetRenderUtils.h | ||
void HideConstraint
(
const int32 ConstraintIndex |
PhysicsAssetRenderUtils.h | ||
void InitPhysicsAssetRenderSettings
(
UMaterialInterface* InBoneUnselectedMaterial, |
PhysicsAssetRenderUtils.h | ||
bool IsBodyHidden
(
const int32 BodyIndex |
Accessors/helper methods | PhysicsAssetRenderUtils.h | |
bool IsConstraintHidden
(
const int32 ConstraintIndex |
PhysicsAssetRenderUtils.h | ||
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. | PhysicsAssetRenderUtils.h | |
void ResetEditorViewportOptions() |
PhysicsAssetRenderUtils.h | ||
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). | PhysicsAssetRenderUtils.h | |
void SetHiddenBodies
(
const TArray< int32 >& InHiddenBodies |
PhysicsAssetRenderUtils.h | ||
void SetHiddenConstraints
(
const TArray< int32 >& InHiddenConstraints |
PhysicsAssetRenderUtils.h | ||
void ShowAll() |
PhysicsAssetRenderUtils.h | ||
void ShowAllBodies() |
PhysicsAssetRenderUtils.h | ||
void ShowAllConstraints() |
PhysicsAssetRenderUtils.h | ||
void ShowBody
(
const int32 BodyIndex |
PhysicsAssetRenderUtils.h | ||
void ShowConstraint
(
const int32 ConstraintIndex |
PhysicsAssetRenderUtils.h | ||
void ToggleShowAllBodies
(
const UPhysicsAsset*const PhysicsAsset |
PhysicsAssetRenderUtils.h | ||
void ToggleShowAllConstraints
(
const UPhysicsAsset*const PhysicsAsset |
PhysicsAssetRenderUtils.h | ||
void ToggleShowBody
(
const int32 BodyIndex |
PhysicsAssetRenderUtils.h | ||
void ToggleShowConstraint
(
const int32 ConstraintIndex |
PhysicsAssetRenderUtils.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bShowCOM_DEPRECATED | bool | PhysicsAssetRenderUtils.h |