Change floor material
Last updated
Last updated
This guide provides instructions on how to change the floor material in the Rubens Configurator using the Roomle Configurator API. The API allows you to modify the environment of the 3D configurator, including changing the floor material dynamically.
Firstly you have to embed the Rubens configurator in you environment, how you can do this you can find here: Getting started
If you want to just copy and paste an existing code example or want to have a quick overview you can check this
For changing the floor color you can use the method RoomleConfigurator.extended.changeFloorMaterial
, if you want to know more about our api functions you can have a look in our integration guide: Trigger API functions
Here is a small code example how this could look in your code:
In this example we firstly initilise our configurator and load an item, afterwards we change the floor material.
There are different floor materials which can be set:
roomle_floor:DresdenEiche
roomle_floor:Palma
roomle_floor:Elba
roomle_floor:Manacor
roomle_floor:KernEiche
roomle_floor:KieferScandic
roomle_floor:EicheHabsburg
roomle_floor:FuldaKiefer
roomle_floor:Ashton
roomle_floor:EicheLondon
roomle_floor:Ibiza
Rubens SDK API functions: RoomleConfigurator.default