Component image 
Texture Ref Editor component as seen in the Scene Inspector

The TextureRefEditor component is commonly used in inspectors for materials and other components that use images/textures.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
_targetRef
|
direct RelayRef`1<AssetRef`1<ITexture2D>> | The field to make a visual for. |
_drive
|
reference drive of AssetRef`1<ITexture2D> | The field to drive with the contents of _targetRef or a placeholder texture if null.
|
_clearReferenceButton
|
Button | The button used to clear _targetRef
|
_openInspectorButton
|
Button | The button to open an inspector for _targetRef .
|
_copyTextureButton
|
Button | The button to copy the texture in _targetRef .
|
_pasteTextureButton
|
Button | The button to paste a texture into _targetRef .
|
_referenceText
|
field drive of String | The field to drive with the description of the contents of _targetRef .
|
_infoText
|
field drive of String | The field to drive with the info of _targetRef .
|
_isNormalMap
|
Bool | Whether _targetRef should be interpreted as a normal map.
|
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|---|---|---|
ClearReference:ButtonEventHandler
|
ButtonEventHandler | ✓ | Called when the reference _targetRef is cleared via the UI button.
|
OpenInspectorButton:ButtonEventHandler
|
ButtonEventHandler | ✓ | Called when an inspector is asked to be opened through this component for _targetRef .
|
CopyTexture:ButtonEventHandler
|
ButtonEventHandler | ✓ | Called when a copy texture is called through this component for _targetRef .
|
PasteTexture:ButtonEventHandler
|
ButtonEventHandler | ✓ | Called when the user asks to paste a texture into _targetRef through this component.
|
SetTexture:ButtonEventHandler
|
ButtonEventHandler | ✓ | Called when the texture for _targetRef is set through this component.
|
Usage
Commonly used in inspectors. Using inspector specific components is a common tactic in Ref Hacking.
Examples
Material inspector views.