UPhysicsConstraintTemplate::ApplyConstraintProfile

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

Choose your operating system:

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