Jump to content

Issue with Prefab Unpacker


TakeruGrima

Recommended Posts

I wanted to test to spawn a village following the tutorials I found. So I created quickly a small part of a village to see how it works

image.png.3e98621bbeebb5da5f1e2ad91da392c3.png

With the structure bellow :

 image.thumb.png.09a1b085ebed85af4e8905ca38480511.png

I organised my structure like that in a way a group of prefabs will be snap to group with the Transform Decorator. But when I spawn it it just spawn the objects bellow BlueHouseTop. It can spawn my other objects only if take them off the Walls & Exterior Props. I don't if it's supposed to work like that but that's really annoying.
In the screenshot bellow I have access to the transform walls but don't have access to the object inside when I tried to open for example WallLamp it doesn't open.
image.thumb.png.b35d4f2c5b3cd67d6925fba639d05a2b.png

Another strange things deleting house "BlueHouseTop" makes all other objects spawn correctly...

Link to comment
Share on other sites

That is very interesting, what if you removed the root of the building and put the building in in the blue house top area? 

Link to comment
Share on other sites

Doing that spawn the house and the exterior props but not all walls, the two last ones called left are not spawned. That is really weird 😅.

I tried to spawn this structure somewhere else and sometimes it spawn the house only, sometimes it spawn some walls. It's supposed to spawn the structure complete normally no ? 

Link to comment
Share on other sites

Can you enable Force Spawn in the spawning criteria? 

Link to comment
Share on other sites

Thanks for the help, Enabling force spawn does works but if I enable it I will lose the spawn criteria, like I need the building to spawn only on a layer that I use as the ground. So if I understand correctly the spawn criteria was applied on all the objects under the root so some walls didn't spawn because it doesn't meet the spawn criteria  ?

Link to comment
Share on other sites

I tried with another prefab and it seems that the prefab unpacker logic doesn't support the spawn criteria. Here I have this settings with a simple structure prefab.

image.png.fea3f18ee191060b7e40e3ecdc7bddac.png

Here the prefab :
image.thumb.png.9b3ba9b5fe85fa85d56f002b46a3ff10.png

All the object root have a GeNaTransformDecorator (if I remove them I will get the same result as described bellow)

As you can see the only things that would avoid the object to be spawn is the texture or the bounds because the slope range is really large but if I tried to spawn it in a perfectly green area here is the result :
image.png.a6bd4accc53848c0711ac88e1e839e42.png

Of course if I check the Force Spawn it would work but what will be the point to have spawn criteria then ^^' ?

I tried to decrease the bounds extents because I was thinking may be sometimes it check the bounds between those objects inside but it give the same result.

Also sometimes I undo the spawn and try to spawn the objects at the same place and it place the objects but not the same objects are spawned. And sometimes it spawn nothing just flatten the terrain and clear details...

Link to comment
Share on other sites

I mainly was checking force spawn to see if they would spawn at all. 
If they do then that means there isn't something broken with the spawner itself which is a good thing. 
Then this means that there is something wrong with the way its going to spawn. 
This could mean that the rules that you have are not allowing it to fully spawn. 

Link to comment
Share on other sites

Thanks for the answer ! Do you have an idea what it could be from the screenshots I sended ?

And removing the GeNa transform decorator on all objects does not really change the result (except the fact that some objects are flying or under the ground a bit).

Link to comment
Share on other sites

Can you please try adjusting the slope range I feel like it would be coming from that.

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...