Muk Custom Object

Muk Custom Object

MUKCustomObject is a template object, you can put anything in it.

You will see two child objects in MUKCustomObject – ios_object & material_object. And inside these objects, you will see an image. You can delete this image and put anything you want to display.

ios_object will get active when the platform type is set to iOS, and material_object will get active when the platform type is set to Material.

If you want to put Muk components in the MUKCustomObject. It is recommended that we overrider the platform type for the Muk Component accordingly. For example, set the platform type to iOS for Muk Components that are in ios_object, and set the platform type to Material for Muk Components that are in material_object. So when you override the platform type of the MUKCustomObject, it will display the correct Muk Components.

Create Muk Custom Object

To create MukCustomObject, create and select MukUICanvas, right-click in the Hierarchy > Muk > Button. You will see a new object( MukCustomObject) 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 MukCustomObject in the newly created MukUICanvas

Muk Button