C# Class DraggableTexture, urban-survivors

Inheritance: GUIDraggableObject
Exibir arquivo Open project: exdev/urban-survivors Class Usage Examples

Public Properties

Property Type Description
index int
selected bool
texture UnityEngine.Texture2D

Protected Properties

Property Type Description
scale float

Public Methods

Method Description
DraggableTexture ( Texture2D tex, int idx ) : UnityEditor
DraggableTexture ( Texture2D tex, int idx, Vector2 position ) : UnityEditor
OnGUI ( float adjust ) : void

Method Details

DraggableTexture() public method

public DraggableTexture ( Texture2D tex, int idx ) : UnityEditor
tex UnityEngine.Texture2D
idx int
return UnityEditor

DraggableTexture() public method

public DraggableTexture ( Texture2D tex, int idx, Vector2 position ) : UnityEditor
tex UnityEngine.Texture2D
idx int
position Vector2
return UnityEditor

OnGUI() public method

public OnGUI ( float adjust ) : void
adjust float
return void

Property Details

index public_oe property

public int index
return int

scale protected_oe property

protected float scale
return float

selected public_oe property

public bool selected
return bool

texture public_oe property

public Texture2D,UnityEngine texture
return UnityEngine.Texture2D