Last active
May 22, 2021 11:16
-
-
Save ronyx69/b4cd41742803eaeac6d19322384a0f4a to your computer and use it in GitHub Desktop.
Tag props for selection in Railway Replacer prop UI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var styleName = "Sugondese"; // Name which will be visible in the UI | |
var type = "cat1n"; // The type of prop: | |
// cat1n single normal catenary | |
// cat1e single end-catenary | |
// cat1t single tunnel catenary | |
// cat2n double normal catenary | |
// cat2e double end-catenary | |
// cat2t double tunnel catenary | |
// sigr right signal | |
// sigl left signal | |
// barr1 short barrier | |
// barr2 medium barrier | |
// barr3 long barrier | |
// barr4 very long barrier | |
// buff buffer | |
// cat4n quad normal catenary | |
// cat4e quad end-catenary | |
// cat4t quad tunnel catenary | |
// gant1 single gantry | |
// gant2 double gantry | |
// gant4 quad gantry | |
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as PropInfo; | |
asset.m_material.name = "r69rwp-"+type+"#"+styleName+"#"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment