{"repo":"kyubuns/AnKuchen","free":true,"listed":false,"github":"https://github.com/kyubuns/AnKuchen","clone":"git clone https://github.com/kyubuns/AnKuchen.git","description":"Control UI Prefab from Script Library","language":"C#","stars":121,"topics":["unity","ugui","ui"],"license":"MIT","category":"game-templates","readme_excerpt":"AnKuchen Control UI Prefab from Script Library You won't have to drag and drop on Inspector when you create your UI. Instructions - UnityPackage - Package Manager - Import AnKuchen https://github.com/kyubuns/AnKuchen.git?path=Unity/Assets/AnKuchen Sample Sample GameObject Get Button You can get a component from a GameObject simply by specifying its name. If there is only one HogeButton under the UICache, the same code will work regardless of where the HogeButton is located. Get Text under the HogeButton Look at the image above. There are four GameObjects named Text . If you want to get the Text under the HogeButton, you can do this. As before, it works whether the HogeButton is directly under the Root or not. Get Text directly under the root Create children map When you want to do the same thing with all three buttons in the UI, you can treat each of them as a map. Duplicate Want more buttons? You can. Code Template Did you notice the \"Copy Template\" button in UICacheComponent? This way you won't have to worry about typo. Duplicate with type You can still use Duplicate and Layouter , even if you have the type. Don't worry. Testing Someone changed the Prefab after I made the type! Let's prevent such accidents. Scroll List With With AkyuiUnity - AkyuiUnity(.Xd) is Adobe XD to Unity(uGUI) Library. - Please see AkyuiUnity Manual Setup - Install AnKuchen - Add a UICacheComponent to the Root of the UI and press the Update button. - We recommend that you automate the process of pres","default_branch":null,"files":null,"tree":[],"storefront":"/r/kyubuns","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kyubuns/AnKuchen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}