Itoo Software Forum

Author Topic: Unity script feature request  (Read 462 times)

Morne

  • Full Member
  • ***
  • Posts: 135
Unity script feature request
« 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

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4106
    • iToo Software
Re: Unity script feature request
« Reply #1 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.

Carlos Quintero
iToo Software

MI3393

  • Newbie
  • *
  • Posts: 10
Re: Unity script feature request
« Reply #2 on: October 23, 2021, 01:17:40 PM »
How exactly do you exchange FBXs in an imported forest object?

Dave

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4106
    • iToo Software
Re: Unity script feature request
« Reply #3 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.

Carlos Quintero
iToo Software

MI3393

  • Newbie
  • *
  • Posts: 10
Re: Unity script feature request
« Reply #4 on: October 25, 2021, 12:12:53 PM »
Thanks.

I'll give that a try.

Dave