Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: Morne on October 14, 2021, 03:24:29 PM

Title: Unity script feature request
Post by: Morne on October 14, 2021, 03:24:29 PM
Hi Team

Would be awesome if I could swop out the source FBX models for other prefebs in Unity

The trees from Max can get very heavy quickly in Unity, so I would use premade trees with various LODS and when I imported the FP object in UNity, would swop the heavy trees for lighter versions (or for any other Unity prefeb I prefer)

Cheers,
Morne
Title: Re: Unity script feature request
Post by: iToo on October 18, 2021, 09:41:04 AM
Hi,

The Unity script just imports a Forest distribution in the scene, from a XML and FBX file.
But once imported, the script has not any effect. You may edit the Unity scene, replace the Forest mesh for you own assets, add LODs or change what you like.

Title: Re: Unity script feature request
Post by: MI3393 on October 23, 2021, 01:17:40 PM
How exactly do you exchange FBXs in an imported forest object?

Dave
Title: Re: Unity script feature request
Post by: iToo on October 25, 2021, 09:17:47 AM
FBX is the file we use to export from Max to Unity, but you can use any native mesh in Unity, once Forest is imported.

A simple procedure, assuming a single mesh by Forest object, would be:

- Drag the FP asset to the Unity scene.
- In the Hierarchy tree, you can see the Forest asset as 'fp1'. Expand it.
- For each Forest item, there is a 'fp1(Clone)' element. These are the Forest instances. Select all of them.
- In the 'Inspector' window, check the 'Mesh Filter' section.
- Click the circle icon (just to the right of the Mesh name), and pick the Unity mesh you want to use. All items will be updated with the new mesh.

Probably there are other ways to do it, but unfortunately our Unity knowledge is limited.

Title: Re: Unity script feature request
Post by: MI3393 on October 25, 2021, 12:12:53 PM
Thanks.

I'll give that a try.

Dave