on 18-05-2012 11:51 AM
I have found the following issue:
Steps:
1. In the UI Composer, drop a Button widget on a scene => Button_1
2. Set the Background type to: Custom
3. Select the button and paste it on the scene. => Button_2
4. Save
5. Build
The copied button will get Background images: for example system_assets/button_9patch_normal.png Actually this idea is quite nice if it would run out-of-the box but ...
UI Composer generates the following code:
...
Button_2_custom.BackgroundNormalImage = new ImageAsset"/Application/assets/system_assets/butto
...
Running the application will give:
System.IO.FileNotFoundException: File not found.
The reason fr this error is clear since there is no assets/system_assets/button_9patch_normal.png file yet.
And of course, it can be solved quite easily by ourselves but I am not sure what the idea behind this behaviour is and how we should deal with it.
Questions:
- Is this a future feature where the composer will automatically add the asset to the list of assets?
- Or are we supposed to create a system_assets folder in assets and add the images ourselves?
22-05-2012 03:18 PM - edited 22-05-2012 03:20 PM
Hi Potato4H3ad,
Thank you for the bug report. This is not an intented behaviour and we will esclatate this bug.
As a temporary workaround, in UIComposer, on the pasted button, delete the path to the image which has been automatically set by UIComposer and this should fix your problems. You can then Build from there.
The UIToolkit is bundled with its own textures (such as the button_9patch_normal.png) which are bundled at runtime.
You should not have to create a system_assets folder.
Thanks again,
James.
on 12-06-2012 10:00 AM
PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.
フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと
PSM DevPortalを一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870