Changes

Jump to navigation Jump to search
no edit summary
Line 31: Line 31:  
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, e.g. '''Light'''.
   −
=== Naming your furniture ==
+
=== Naming your furniture ===
 
Your furniture will take its name from the filename. As of Alpha 11.4.10, this name should be considered an ID and not what the player will see, so you should try and make it as unique as possible, to avoid clashing with vanilla furniture or furniture from other mods. To name your furniture in the UI use the '''LocalizedName''' variable in the '''Furniture''' table and use the '''GENERATE_LOCALIZATION your_mod_name''' console command to generate the localization files for your mod. To find your furniture's name in the UI, the game will lookup your mods ID/filename and return the LocalizedName that has been exported with the GENERATE_LOCALIZATION command. This has the added benefit of allowing people to translate your mod to other languages.
 
Your furniture will take its name from the filename. As of Alpha 11.4.10, this name should be considered an ID and not what the player will see, so you should try and make it as unique as possible, to avoid clashing with vanilla furniture or furniture from other mods. To name your furniture in the UI use the '''LocalizedName''' variable in the '''Furniture''' table and use the '''GENERATE_LOCALIZATION your_mod_name''' console command to generate the localization files for your mod. To find your furniture's name in the UI, the game will lookup your mods ID/filename and return the LocalizedName that has been exported with the GENERATE_LOCALIZATION command. This has the added benefit of allowing people to translate your mod to other languages.
  

Navigation menu