API reference
API reference
Select your platform
No SDKs available
No versions available

SampleEditor Class

Extends Editor

Member Functions

override void OnInspectorGUI ( )

Static Member Functions

Draw method for a sample
Parameters
sample
Sample to be drawn
tileSize
Width of a tile
Draw button for open sample
Checks if a sample is currently opened
Parameters
sample
The sample asset data referencing the sample scene.
Checks if a sample can be opened, if false the sample must be imported.
Parameters
sample
The sample data to be checked
Returns
True if sample is imported & can be opened
Opens a sample if possible
Parameters
sample
The sample data asset to be opened
Imports a sample into the current scene
Determine size of a sample
Parameters
sample
The sample data asset to be opened
Did you find this page helpful?
Thumbs up icon
Thumbs down icon