Profile image

Railway Designer

14.3k Avro683Lancaster  6.9 years ago

How do I make Unity import a prefab into a designer mod?

Screenshot:
Imgur

How it should look:
Imgur

How it looks:

Note: outdated. current version similar

  • Log in to leave a comment
  • Profile image

    @mushr0om all default

    6.9 years ago
  • Profile image
    18.8k mushr0om

    @Avro683Lancaster http://i.imgur.com/66srMLZ.png

    6.9 years ago
  • Profile image

    @mushr0om what do you mean?

    6.9 years ago
  • Profile image
    18.8k mushr0om

    @Avro683Lancaster What layer is the rails on? if its ui or something it might not be rendered by the camera

    6.9 years ago
  • Profile image

    @mushr0om The RailSpawner script is an attempt at using Object.instantiate to load the rails in. it didn't work.

    6.9 years ago
  • Profile image
    18.8k mushr0om

    @Avro683Lancaster What is the rail spawner script for? Check dev console to see if it has any errors

    6.9 years ago
  • Profile image

    @WNP78 Didn't work

    6.9 years ago
  • Profile image

    @WNP78 I shall try

    6.9 years ago
  • Profile image
    Dev WNP78

    @Avro683Lancaster hmm. Try clicking on the long wood track then do gameobject > break prefab instance

    6.9 years ago
  • Profile image

    @WNP78 screenshot of what I have done is being uploaded to the post
    None of the blue items load
    all parts have the designer plugin and are saved to the mod

    6.9 years ago
  • Profile image
    Dev WNP78

    @Avro683Lancaster make sure the object which is not loading is a child of the object with the designer plugin, and make sure you save the scene objects every time you change something

    6.9 years ago
  • Profile image

    @WNP78 I did that, but it doesn't load them into the designer. I am using Terrain, a directional light, which both load, and an obj with 3 children, which doesn't load.

    6.9 years ago
  • Profile image
    Dev WNP78

    Get all of your models etc as a GameObject in the scene, and add a DesignerPlugin script to it from the mod tools, then use the "Save Selected Scene Objects" button.

    6.9 years ago