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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to change detail albedo x2 texture from script

Discussion in 'Scripting' started by AlmantusK, Oct 17, 2015.

  1. AlmantusK

    AlmantusK

    Joined:
    Oct 7, 2015
    Posts:
    30
    Hello, have a face of my character that is a part of my model. It has a base texture and on top of it - albedo x2 texture to set its facial expression. What I am trying to do is to change the second texture when something happens (let's say player gets in range or character gets hit). So the problem is that from scripts, I can only find how to change main texture. Any tips how to change texture for detail? Thank you in advance:)
     
  2. AlmantusK

    AlmantusK

    Joined:
    Oct 7, 2015
    Posts:
    30
    The only way out atm I see making a material with x2 textures.. But I don't really like the idea..