Search Unity

How to apply a material to an object without dragging ?

Discussion in 'Linux' started by ishanatmuz, Sep 14, 2015.

  1. ishanatmuz

    ishanatmuz

    Joined:
    Sep 13, 2015
    Posts:
    5
    How can I apply a simple material to a object (Quad) without dragging the material from project to the object (Quad) in the hierarchy view ?
    To add a script without dragging I just went to "Add Component" > Scripts > myScript
    What to do in a similar case for materials ?
    I am asking this because the dragging doesn't works in Linux build for now.
     
  2. Sisso

    Sisso

    Joined:
    Sep 29, 2009
    Posts:
    196
    It works. You have no visual about the drag action (like change cursor) but for every drag action works.

    If really didn't work for you, is something related with your environment (linux version, interface, compiz, etc). Try to search on this forum or create a new topic with bug report.

    About your question, there is a plain of info with keywords "unity3d material script" in google/forums/answers
     
  3. ishanatmuz

    ishanatmuz

    Joined:
    Sep 13, 2015
    Posts:
    5
    When dragging from "Project" to "Hierarchy" I get the visual clue but with a few pixels down like the problem that is mentioned here http://forum.unity3d.com/threads/mouse-selection-stuff-offsetted-by-menubar.351161/
    However when I drag onto the object in the "Scene" panel it worked. I didn't had the issues in "Scene" panel as is shown in the video at http://forum.unity3d.com/threads/mouse-selection-stuff-offsetted-by-menubar.351161/ only when dragging on to the "Heirarchy" panel.