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

GetComponent Material Design

Discussion in 'Scripting' started by flywing12, Jan 17, 2017.

  1. flywing12

    flywing12

    Joined:
    Jan 14, 2017
    Posts:
    7
    My code is :

    is it possible to have

    GetComponent<MaterialUI>().Text - i tried this but i got an error
     
  2. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    that looks to be an asset... does it not have it's own documentation of some sort?

    if you ever find yourself type that in a forum post it really really needs to be followed with the error text...
     
  3. flywing12

    flywing12

    Joined:
    Jan 14, 2017
    Posts:
    7

    Already found the answer .. Thanks for your reply man ;)