Changes

Jump to navigation Jump to search
350 bytes added ,  15:28, 5 March 2020
Line 31: Line 31:  
You can define a list of empty Transforms using a '''Transform''' list with tables that define a '''Name''' (instead of '''ComponentName'''), '''Position''' and  '''Rotation''' (in degrees as Euler angles).
 
You can define a list of empty Transforms using a '''Transform''' list with tables that define a '''Name''' (instead of '''ComponentName'''), '''Position''' and  '''Rotation''' (in degrees as Euler angles).
   −
You can add Unity components to any tranforms and objects by using the '''TransformParent''' record in a table that has the same name as the UnityComponent you want to add, e.g. '''Light'''.
+
You can add Unity components to any tranforms and objects by using the '''TransformParent''' record in a table that has the same name as the UnityComponent you want to add. As an example, you can add a Unity '''Light''' component to a '''Transform''' and pass the transform's name to the '''Furniture''' component's '''ColorableLights''' list and you now have a light that changes color based on what the player picks. Just make sure they are defined in the correct order (You can't refer to a TransformParent that hasn't been created yet).
    
=== Naming your furniture ===
 
=== Naming your furniture ===

Navigation menu