Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a better way to get _PropertyValuePosition? #97

Closed
tuokri opened this issue Jan 10, 2025 · 1 comment
Closed

Is there a better way to get _PropertyValuePosition? #97

tuokri opened this issue Jan 10, 2025 · 1 comment
Labels

Comments

@tuokri
Copy link

tuokri commented Jan 10, 2025

I wrote a program that patches the value of a object property in a class in a script package to point to another object in the same script package. For this I need to know the value of _PropertyValuePosition in UDefaultProperty, which is private.

I'm using reflection to access the value, but was just wondering if it really needs to be private, and if there's another supported to way to do it without reflection?

https://github.com/tuokri/UE3ShaderCachePatcher/blob/22a6574ac60696adb64527677911398a2741e6ba/UE3ShaderCachePatcherCLI/Program.cs#L136-L146

@EliotVU
Copy link
Owner

EliotVU commented Jan 17, 2025

Unfortunately not :/ other than using the BinaryField's Offset of the recorded "Value" field.

Repository owner locked and limited conversation to collaborators Jan 20, 2025
@EliotVU EliotVU converted this issue into discussion #100 Jan 20, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants