I want to create some C# scripts to convert Cocos UI to UGUI. However, I don’t want to use multiple GameObjects to form complex combined controls (such as ToggleSliderScrollbar, Scroll View, Button, Dropdown, InputField (TMP), etc.). Is there any API that can be used to create them conveniently? I see that the options in the right-click menu - UI in the control node tree (The Hierarchy View) are the controls I want. How should I call a similar API? Or is a similar API open for calling?
UGUI is not a 2D feature so please don’t use the 2D tag here. Use the UGUI tag.
I’ll sort this out for you now but in the future, please use tags that are appropriate for you question.
Thanks,
Thank’s for your tip and help me change the tag. but I’m more concerned about how to solve my problem?Can u help me please?
I am a rookies of the unity so I didn’t understand how to categorize my questions
![]()
I don’t have an answer which is why it’s important to use the correct tags when making a post so that it lands in the product area where devs might know the answer.
I solution this quesion. I can create many prefabs to act as controls. Then, when creating controls, read the corresponding prefab to create controls. Only need to completely decompress this prefab node.