Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Object with different shaders Blender -> Unity

Discussion in 'General Graphics' started by Haxzploid, Mar 11, 2020.

  1. Haxzploid

    Haxzploid

    Joined:
    Dec 28, 2018
    Posts:
    36
    Hello

    I am very new to everything in Unity and 3D, and have begun a project that is coming along nicely. I have Googled a bit to find a solution to my issue, but can't really find anything.

    Currently i am building a model in Blender, a 'Holy Hand Grenade' to be precise. Hopefully you can see the image below.

    Now my question is.. Where do i apply materials and shaders? In Blender or in Unity? I would prefer to do it in Unity i guess, based on what I've read you can't be 100% certain that it will look the same once exported to Unity, right? :)

    So let's say I do it in Unity. How would i go about applying different materials to the objects if it's joined together into one object before exporting? Do i join it together later in Unity? Hooow? What do i do? What is the workflow? :)



     
  2. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,357
    If you want to be able to assign different materials to a model in Unity, then you need to assign them different materials in Blender. When you import the model into Unity, the model will be split into separate sub-meshes for each material.

    As for material and shader properties, what you do in Blender is largely incompatible with Unity's system and won't import. That's why I only ever edit my material properties in Unity. I don't bother editing the materials in Blender except that I assign each material a random color so that I can tell which parts of the model have which material.
     
    Haxzploid likes this.
  3. Haxzploid

    Haxzploid

    Joined:
    Dec 28, 2018
    Posts:
    36
    Thank you so much for your reply, it helped a lot. I was hoping it would work as you explained. :) I will put it to the test tomorrow.
     
  4. doreenholley

    doreenholley

    Joined:
    Aug 29, 2019
    Posts:
    10
    Pleasse point me in direction to edit in Unity, imported material from Blender...I try to edit and it looks like a "Prefab"?
     
  5. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,357
    If you're not able to edit a mesh's materials then you probably have materials embedded in your fbx file and need to extract them.

    Got to the mesh import properties and click om the "materials" tab. There should be a button you can use to "extract materials"
     
    doreenholley likes this.