04-18-2025, 06:53 AM
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.
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.