Author Topic: Can I get external sbsar file at runtime?  (Read 1625 times)

Hi everyone

I'm trying Substance in Unity.
Is anyway for get external sbsar file and assign to a mesh at runtime?

Thank you

Hi everyone

I'm trying Substance in Unity.
Is anyway for get external sbsar file and assign to a mesh at runtime?

Thank you

Hi,

Do you mean an external sbsar that is not stored in the asset folder?

Cheers,
Wes
Head of Substance Demo Art Team
the3dninja@adobe.com
Twitter: The3DNinja

Hi everyone

I'm trying Substance in Unity.
Is anyway for get external sbsar file and assign to a mesh at runtime?

Thank you

Hi,

Do you mean an external sbsar that is not stored in the asset folder?

Cheers,
Wes


Yes, it's my meaning.

Hi everyone

I'm trying Substance in Unity.
Is anyway for get external sbsar file and assign to a mesh at runtime?

Thank you

Hi,

Do you mean an external sbsar that is not stored in the asset folder?

Cheers,
Wes


Yes, it's my meaning.

Thanks! I'm sorry but just a little more clarification. Are you looking at asset bundles or resource folder?

Cheers,
Wes
Head of Substance Demo Art Team
the3dninja@adobe.com
Twitter: The3DNinja

Sorry for unclear describe, my question is:

1.I have sbsar file in the disk already(not in asset folder), may I get it and assign to mesh at runtime?

2.If I wish assign a sbsar to two mesh for different set, I should duplicate it

  Can I duplicate it by script?


Thanks for your reply Wes
Last Edit: September 03, 2018, 03:46:45 am

Can anyone help me?

Sorry for unclear describe, my question is:

1.I have sbsar file in the disk already(not in asset folder), may I get it and assign to mesh at runtime?

2.If I wish assign a sbsar to two mesh for different set, I should duplicate it

  Can I duplicate it by script?


Thanks for your reply Wes

Hi,

1. In order to assign the material to mesh at runtime, the sbsar file needs to be imported to your project in the Asset Folder.

2. We are still working on the API and it's limited at this time. You can't duplicate materials via script just yet. In order to have different settings on 2 meshes, you will need to duplicate the substance. The final output of a substance is to generate textures so to have different values you will need another set of textures.

Cheers,
Wes
Head of Substance Demo Art Team
the3dninja@adobe.com
Twitter: The3DNinja