You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Use case : ``` // Let's say we've deprecated the following code in UE5.1 UE_DEPRECATED(5.1, "Use the other thing instead...") UPROPERTY(meta = (DeprecatedProperty, DeprecationMessage = "Use the other thing instead")) float SomeUProperty_DEPRECATED = 1.0f; UE_DEPRECATED(5.1, "Use the other thing instead...") UFUNCTION(meta = (DeprecatedFunction, DeprecationMessage = "Use the other thing instead...")) void FooBar(int32 X); // Then when shipping UE5.4, we would turn that into: UE_DEPRECATED(all, "Use the other thing instead...") UPROPERTY(meta = (DeprecatedProperty, DeprecationMessage = "Use the other thing instead")) float SomeUProperty_DEPRECATED = 1.0f; UE_DEPRECATED(all, "Use the other thing instead...") UFUNCTION(meta = (DeprecatedFunction, DeprecationMessage = "Use the other thing instead...")) void FooBar(int32 X); ``` Therefore, the act of deprecating code that is more than 2 engine versions old consists in a simple text-search for "UE_DEPRECATED" in your code and for the occurrences that are not tagged as "all" and more than 2 versions old. Then: - If the code is reflected, turn them into UE_DEPRECATED(all, ...) - Otherwise, remove the code altogether #rb Tim.Smith [CL 31622610 by jonathan bard in ue5-main branch]