I’ve seen here that if I want to dynamically a create, a button for example I must create a prefab, of this button in a game object, I’ve done this but for some reason the source image does not appear. and the anchor image/selection (just above the anchors tab button thing) is not there either. is this bug??
More likely you need to reset / parent the RectTransform properites.
Have a look at the Editor script for setting layout properties (just don’t use the editor functions)
https://bitbucket.org/ddreaper/unity-ui-extensions/src/793e81f5d0a1ba123062159fbc28855d619b4508/Editor/UIExtensionsMenuOptions.cs?at=develop_5.3&fileviewer=file-view-default
Hope this helps
The problem is, I will not know the positions until runtime, hence the reason for needed to dynamically position them around(in a circle) the object you can see, I know I could use GameObjects and get the position of the UI Image use see but messing with UI to gameobjects is a real pain.
I read the post on why the will not allow for creation of UI elements though code and the answer is lunacy Winforms, android OS, and I bet OS, you can easily create a default button though code and wire it up. The developers are pure lazy, I Like the Unity infrastructure(I have a plus licence), but this is what I find all the time.
Unit makes the hardest things easy, but the easiest things hard.
After all here I only want a default button but where I want it, parent that might be but I wouldn’t of thought that stop displaying of the default image??
