Search Unity

Viewing Builtin Scripts

Discussion in 'UGUI & TextMesh Pro' started by JAKJ, Aug 25, 2014.

  1. JAKJ

    JAKJ

    Joined:
    Aug 17, 2014
    Posts:
    185
    How can I view the contents of the builtin scripts (such as "Event Trigger")? I'm trying to create a script I can attach to a button that will override its OnPointerEnter and OnPointerExit methods, and the easiest and best way to do that would seem to be to just do it the same way the Event Trigger script does it.
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    Hi, we will be making the source open as soon as we can, this isn't quite the case yet though :( You can find some snippets here until we do a full source release.

    https://gist.github.com/stramit
     
  3. JAKJ

    JAKJ

    Joined:
    Aug 17, 2014
    Posts:
    185
    Incomplete or not, that is excellent and *SUPER* helpful right now, so thanks. :) It gives me just enough of an idea of how things work to be able to figure the rest out with autocomplete and experimentation.