Difference between revisions of "GUIDragItem"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the GUIDragItem class)
 
(Documentation for the GUIDragItem class)
Line 1: Line 1:
 +
* '''Inherits class: [[GUIComponent]]'''
 +
* This is a JavaScript visible object
 
===Remarks <nowiki>[</nowiki>[{{fullurl:GUIDragItem Remarks|action=edit}} edit]<nowiki>]</nowiki>===
 
===Remarks <nowiki>[</nowiki>[{{fullurl:GUIDragItem Remarks|action=edit}} edit]<nowiki>]</nowiki>===
 
{{:GUIDragItem Remarks}}
 
{{:GUIDragItem Remarks}}
Line 12: Line 14:
  
 
:{{CSharp|GUISprite DraggingTexture {get;} }}
 
:{{CSharp|GUISprite DraggingTexture {get;} }}
 
:{{CSharp|MonoBehaviour DragTarget {get;} }}
 
  
 
:{{CSharp|bool Enabled {get; set;} }}
 
:{{CSharp|bool Enabled {get; set;} }}
Line 30: Line 30:
  
 
:{{CSharp|JSVector3 WorldDrop {get;} }}
 
:{{CSharp|JSVector3 WorldDrop {get;} }}
 
:{{CSharp|Vector3 WorldDropVector {get; set;} }}
 
  
 
===Events===
 
===Events===
Line 37: Line 35:
  
 
:{{CSharp|OnDrop(EventHandler<FlexibleEventArgs>)}}
 
:{{CSharp|OnDrop(EventHandler<FlexibleEventArgs>)}}
 
===Constructors===
 
:{{CSharp|GUIDragItem()}}
 
 
===Methods===
 
:{{CSharp|void OnCreate(IntPtr context)}}
 
  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__

Revision as of 16:35, 21 October 2016

  • Inherits class: GUIComponent
  • This is a JavaScript visible object

Remarks [edit]

Properties

bool AllowDrag {get; set;}
bool AllowUIDrop {get; set;}
bool AllowWorldDrop {get; set;}
Color32 DisabledColor {get; set;}
GUISprite DraggingTexture {get;}
bool Enabled {get; set;}
bool HideWhenNotDragging {get; set;}
Color32 HoverColor {get; set;}
Color32 NormalColor {get; set;}
GUISprite NormalTexture {get;}
Color32 PressedColor {get; set;}
bool SnapToMouse {get; set;}
JSVector3 WorldDrop {get;}

Events

OnClick(EventHandler<FlexibleEventArgs>)
OnDrop(EventHandler<FlexibleEventArgs>)