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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Material Property Override for Tiling/Offset?

Discussion in 'FPS.Sample Game' started by iamarugin, Jun 11, 2019.

  1. iamarugin

    iamarugin

    Joined:
    Dec 17, 2014
    Posts:
    817
    I want to set Lit Material tiling and offest using Material Property Override from FPS Sample, but I see no such property when I click "Show All" button in MaterialPropertyOverrideAsset. Is there any way to do it?
     
    usernameHed likes this.
  2. iamarugin

    iamarugin

    Joined:
    Dec 17, 2014
    Posts:
    817
  3. usernameHed

    usernameHed

    Joined:
    Apr 5, 2016
    Posts:
    91
    Up. It's
    renderer.material.mainTextureScale = new Vector2(scaleX, scaleY); usually.
    But inside MaterialPropertyOverrideAsset we don't have it