After setting setContentScaleFactor for cocos Director UI created by FairyGUI is disturbed.
My project is designed in such a way that i have 3 set of graphics HDR, HD and SD and depending on the screensize i set Director's setContentScaleFactor to 1, 0.5 and 0.25 respectively. Now i have integrated Fairygui into project and created a popup using HDR resources. It works fine if setContentScaleFactor is set to 1 but it doesn't work well if for other values. 9 slice images, bitmap fonts all looses their size and shape.
I have tried similar behaviour in your sample project and same outcome was there. Can you help me how can i solve this issue so i can run with setContentScaleFactor 0.5 and 0.25? Thanks
I have tried similar behaviour in your sample project and same outcome was there. Can you help me how can i solve this issue so i can run with setContentScaleFactor 0.5 and 0.25? Thanks
没有找到相关结果
已邀请:
12 个回复
谷主
赞同来自:
shaniamjad
赞同来自:
谷主
赞同来自:
shaniamjad
赞同来自:
shaniamjad
赞同来自:
std::string itemId = (*highResolution)[GRoot::contentScaleLevel - 1];
I have placed graphics in the editor fine please see screenshot attached.
I am unable to find any example in samples for this. Any ideas about this what am i doing wrong here? Thanks
谷主
赞同来自:
shaniamjad
赞同来自:
谷主
赞同来自:
谷主
赞同来自:
std::string itemId = (*highResolution)[GRoot::contentScaleLevel - 1];"
This bug is fixed.
shaniamjad
赞同来自:
谷主
赞同来自:
shaniamjad
赞同来自: