Posts: 4,930
Threads: 467
Joined: Dec 2010
Hi all,
SetObjectMaterialText has error, when written more than 15 times on the same object SetObjectMaterialText stops working. in order
Posts: 381
Threads: 12
Joined: Oct 2012
Reputation:
0
post code? what do u mean "in order"
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
You need to destroy your object and re-create it each update.
Posts: 25
Threads: 10
Joined: Feb 2013
Reputation:
0
Could you explain yourself a little better? not quite sure I understand.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
I already explained "You need to destroy your object and re-create it each update" there is nothing else he needs to explain I've seen this bug before basically if you update your objects text with SetObjectMaterialText() more than 15 times without destroying/creating the object it will stop updating.
Posts: 3,138
Threads: 71
Joined: May 2008
Reputation:
0
Yeah, after 16-th change materials, object must be recreated. Also I found one more bug: you can't change materials with layer index > 15.