Helpful macros & prebuild scripts for supporting plugins across many versions of Unreal Engine.

Add prebuild option for `TObjectPtr` replacements#1

Closed
Opened 1/7/20250 commentsby sbseltzer
sbseltzer

Update `Prebuild.py` and `PrebuildConfig.py` to optionally handle `TObjectPtr` replacements as it's a common backwards-compatibility use-case. Here's how it'd work: - On UE4, it would search and replace all `TObjectPtr<T>` with `T* /* TObjectPtr */ `. - On UE5, it would search and replace all `T* /* TObjectPtr */ ` with `TObjectPtr<T>`. This ensures backward/forward compatibility with the ability to use it inside function/macro parameters. NOTE: It would need to do this in both `.h` and `.cpp` files (and `.inl` for good measure). The usual macro replacements are only relevant to header files, but this needs to handle the `TObjectPtr` usage in implementation files as well.

AI Analysis

This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by sbseltzer and has received 0 comments.

Add a comment
Comment form would go here