Ejemplo n.º 1
0
    /// <summary>
    /// Convenience method -- add a texture.
    /// </summary>

    static public UITexture AddTextureEx(GameObject go)
    {
        UITextureEx w = NGUITools.AddWidget <UITextureEx>(go);

        w.name        = "Texture";
        w.pivot       = pivot;
        w.mainTexture = texture;
        w.width       = 100;
        w.height      = 100;
        return(w);
    }
 protected override void OnEnable()
 {
     base.OnEnable();
     mTexEx = target as UITextureEx;
 }