04-26-2025, 11:47 AM
(04-18-2025, 06:53 AM)eliot Wrote: Well there's two approaches you can do:
1. Change the name table item's text (this will change all variables that use the same name)
2. Get the property object and make its export table point to a new or another name table item, like so:
(from the top of my head)
...
foreach (var obj in myPackage.Objects)
{
if (obj is UByteProperty && (int)obj > 0) {
obj.ExportTable.ObjectName = new UName("byteProperty" + obj.Name);
}
}
That should change the name to byteProperty+OldName for all (non-imported) byte properties, then it's up to you to expand this to all types you want to consider.
those sound like a good approach. thanks a lot , ill give a try.