UPhysicsConstraintTemplate::ApplyConstraintProfile

Find profile with given name and apply it to constraint instance.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsConstraintTemplate.h

Include

#include "PhysicsEngine/PhysicsConstraintTemplate.h"

Syntax

void ApplyConstraintProfile
(
    FName ProfileName,
    FConstraintInstance & CI,
    bool bDefaultIfNotFound
) const

Remarks

Find profile with given name and apply it to constraint instance.

we cannot return a pointer to the constraint profile as it's in a TArray by value and could be resized leading to an unsafe API

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