A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.unity3d.com/Manual/../ScriptReference/Editor.OnInteractivePreviewGUI.html below:

Unity - Scripting API: Editor.OnInteractivePreviewGUI

Editor.OnInteractivePreviewGUI Suggest a change Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close Your name Your email Suggestion*

Cancel

Declaration

public void

OnInteractivePreviewGUI

(

Rect r

,

GUIStyle background

);

Parameters Parameter Description r Rectangle in which to draw the preview. background Background image. Description

Implement to create your own interactive custom preview. Interactive custom previews are used in the preview area of the inspector and the object selector.

Implement this method, instead of OnPreviewGUI, to display interactive custom previews. You can implement both methods when some previews are interactive and others are not. The overidden method should use the rectangle passed in and render a preview of the asset. The default implementation is a no-op.

Note: Inspector previews are limited to the primary editor of persistent objects (assets). For example, GameObjectInspector, MaterialEditor, TextureInspector, and so on. This means that it is currently not possible for a component to have its own inspector preview.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4