Muk Setting section is a way to build a native look-a-like setting page in Muk.
You can create a MukSettingSection, then create MukSettingRows and assign the rows to the section.
Create Muk Setting Section #
To create Muk Setting Section, create and select MukUICanvas, right-click in the Hierarchy > Muk > SettingPage > Section. You will see a new object(MukSettingSection) created in the selected canvas or the first canvas in the Hierarchy (if no canvas is selected). If there’s no canvas in the Hierarchy, Muk will create a MukUICanvas for you and place the MukSettingSectionin the newly created MukUICanvas.
Assign Row #
You can create MukSettingRow and assign then to the section, after you have created the row, you can assign it to the Rows property. After assigning the row, you can go to MukSettingSection > ios_object / material_object (depends on your platform) > Rows, and you will see your rows there. Now You can edit it as you like.
You can assign any UI object to the section. MukSettingRow is just a pre-build UI that makes it easy for you.
When you change the platform type, the row will automatically change its parent to the platform object.
Muk Setting Section - Properties #
Property | Desciption | Value |
---|---|---|
Platform Type | Which UI Platform should Muk Components display. | Device - Base on device. iOS UI for iOS device, Material design for others. iOS - iOS design. Material - Material design. |
Dark Mode | Use Dark mode or light mode. You can set color for each mode in theme settings. | Dark - Dark Mode. Light - Light Mode. |
Is Show Title | To show the title on top or not | |
Is Show Footer | To show footer on the bottom or not | |
Rows | A array of rows. You can assign any UI object in this, Muk will move the UI object into MukSettingSection. | |
Dont Show Prefeb Warning | If you set the object to prefeb, you cannot set row, since it will delete not-assigned row. Deletion can only be done in prefeb window for prefebs. |