Search Unity

Custom inspectors and texture2d/sprite fields.

Discussion in 'Editor & General Support' started by cjow, Feb 26, 2014.

  1. cjow

    cjow

    Joined:
    Feb 29, 2012
    Posts:
    132
    Hey,

    Is it possible to get ObjectFields for Sprites and Texture2D to appear as they do in an EditorWindow or, for example, like a material's texture field, in a custom inspector. All I can seem to get is the default rectangular object field like you would get with a float or a string.

    I've been looking for a while but I've not found anything useful yet(or perhaps I'm just useless at looking). Any advice would be appreciated.

    Thanks.