UCollisionProfile

Set up and modify collision settings.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/CollisionProfile.h

Include

#include "Engine/CollisionProfile.h"

Syntax

class UCollisionProfile : public UDeveloperSettings

Remarks

Set up and modify collision settings.

Variables

Name Description

Public variable

FOnLoadProfileC...

 

OnLoadProfileConfig

Constructors

Name Description

Public function

UCollisionProfile

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

ECollisionCh...

 

ConvertToCollisionChannel

(
    bool TraceType,
    int32 Index
)

Convert ObjectType or TraceType to CollisionChannel

Public function Const

EObjectTypeQ...

 

ConvertToObjectType

(
    ECollisionChannel CollisionChannel
)

Convert collision channel to ObjectTypeQuery.

performs a search of object types.

Public function Const

ETraceTypeQu...

 

ConvertToTraceType

(
    ECollisionChannel CollisionChannel
)

Convert collision channel to TraceTypeQuery.

performs a search of object types.

Public function Static

UCollisionPr...

 

Get()

Accessor and initializer

Public function Static

bool

 

GetChannelAndResponseParams

(
    FName ProfileName,
    ECollisionChannel& CollisionChanne...,
    FCollisionResponseParams& Response...
)

Get the channel and response params from the specified profile

Public function Const

int32

 

GetNumOfProfiles()

Accessor for UI customization

Public function Const

const FColli...

 

GetProfileByIndex

(
    int32 Index
)

Accessor for UI customization

Public function Static

void

 

GetProfileNames

(
    TArray< TSharedPtr< FName >>& OutN...
)

End UObject interface Fill up the array with the profile names

Public function Const

bool

 

GetProfileTemplate

(
    FName ProfileName,
    FCollisionResponseTemplate& Profil...
)

Fill up the loaded config of the profile name to the BodyInstance

Public function

void

 

LoadProfileConfig

(
    bool bForceInit
)

This function loads all config data to memory

Public function Const

const FName ...

 

LookForProfileRedirect

(
    FName ProfileName
)

Check if this profile name has been redirected

Public function Const

bool

 

ReadConfig

(
    FName ProfileName,
    FBodyInstance& BodyInstance
)

Fill up the loaded config of the profile name to the BodyInstance

Public function Const

FName

 

ReturnChannelNameFromContainerIndex

(
    int32 ContainerIndex
)

Public function Const

int32

 

ReturnContainerIndexFromChannelName

(
    FName& InOutDisplayName
)

Return index of Container index from DisplayName and vice versa this is misnamed now since I changed to update name if the name changed

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

UObject interface

Public function Virtual

void

 

PostReloadConfig

(
    FProperty* PropertyThatWasLoad...
)

Begin UObject interface

Typedefs

Name

Description

FOnLoadProfileConfig

Holds a delegate to be invoked when LoadProfileConfig is called.

Constants

Name

Description

BlockAll_ProfileName

BlockAllDynamic_ProfileName

CustomCollisionProfileName

Custom collision profile name that you can modify what you'd like

DefaultProjectile_ProfileName

NoCollision_ProfileName

Default property name for no collision - this is very popular

Pawn_ProfileName

PhysicsActor_ProfileName

Vehicle_ProfileName

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss