Reputation: 2603
I have an array of TCube and need to change the Material.Modulation to tmReplace at runtime I am trying like so.
CreateCube[i].Material.Modulation.tmReplace;
but get Record, object or class type required. Any help on how to edit this property?
thanks glen
Upvotes: 0
Views: 64
Reputation: 2977
CreateCube[i].Material.Modulation := TTextureMode.tmReplace
In FMX you will often have to call the type of the enumerators or sets, why this is so I do not know, it's just something I learned from my personal experience.
Upvotes: 1