Hello everyone,
Currently I'm working on a script that creates a sliced sprite and adds it to my scene. However, I haven't been able to turn off the "Fill Center" check box via code. I need to turn it off for many sprites, so turning it off manually each time isn't the best idea.
Can someone tell me which property I must modify in order for the "Fill Center" to appear off?
Basically what I'm doing is something like:
UISprite outline = go.AddComponent<UISprite>();
//Then I do stuff related to sprite size, name, and other properties
outline.type = UISprite.Type.Sliced;
//Turn off "Fill Center" here somehow
If you could help me out, I would really appreciate it!