# How to Expose TObjectPtr Functions to Blueprints?

**URL:** <https://forums.unrealengine.com/t/how-to-expose-tobjectptr-functions-to-blueprints/2675732>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Engine-Source-Code, pointer, editor, Visual-Studio, Blueprint, question, CPP\
**Created:** [November 17, 2025, 3:39am UTC](https://forums.unrealengine.com/t/how-to-expose-tobjectptr-functions-to-blueprints/2675732 "2025-11-17T03:39:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [November 17, 2025, 3:39am UTC](https://forums.unrealengine.com/t/how-to-expose-tobjectptr-functions-to-blueprints/2675732/1 "2025-11-17T03:39:59Z")

</div>

I’m trying to expose the InputTriggers ChordAction through set/get functions. To do this I need to cast the TObjectPtr to a regular pointer (and vice-versa).

InputTriggers.h

Class: UInputTrigger

```auto
(line 409) public:

// The action that must be triggering for this trigger's action to trigger
UPROPERTY(EditInstanceOnly, BlueprintReadWrite, Category = "Trigger Settings", meta = (DisplayThumbnail = "false"))
TObjectPtr<const UInputAction> ChordAction = nullptr;

UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category = "Trigger Settings")
UInputAction* getChordActionValueCppFn() const override { return UChordAction::ChordAction.Get(); }

UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category = "Trigger Settings")
bool setChordActionValueCppFn(const UInputAction* ChordActionInput) const override { UChordAction::ChordAction = (TObjectPtr<const UInputAction>) ChordActionInput; }
 

```

After build and editor compilation, these functions are not accessible in blueprints. Does anyone know why?
