Jump to content

Terrain Decorators Not Automatically Flattening in Prefab Spawners


NoobsGaming
Go to solution Solved by Manny,

Recommended Posts

Hi there, 

 

I'm super new with GeNa. I tried to set up a terrain decorator to automatically flatten the ground under prefab buildings I'm trying to place. I set it up the way they said to in the tutorial.. he said to attach the decorator to an empty object within the prefab, and make sure it's at the top of the hierarchy in said prefab, which I did. It's just not applying when I place the prefab. 

 

... I know I have the level set properly. When I place the prefab by hand (i.e. not using a GeNa spawner) and then go to the flattener in the prefab and click "Apply to Terrain" It flattens the ground as intended, and is at the correct height, radius etc. It just wont automatically do it as part of placing the house using the GeNa Spawner which is the ultimate intent. 

Link to comment
Share on other sites

14 minutes ago, Manny said:

With the 'Farm_House_Large' GameObject, do you have a PrefabUnpackerDecorator attached to it?

I do not @Manny. Is that the issue? have to have an unpacker on prefabs, and then other decorators will work? 

Link to comment
Share on other sites

  • Solution

Okay I see the problem. Basically the issue is that if you have a Prefab and it has some decorators that need to be processed by a Spawner, you need to Unpack that Prefab so the contents can be read and viewed by the Spawner. 

To do this, go and add a 'PrefabUnpackerDecorator' on the root GameObject of that Prefab, save it and then either click 'Refresh Ingestion' or remove the Prototype from the Spawner and add it again. 

Once you've done this, can you take another screen shot of the Spawn Prototype unfolded? 🙂

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...