A field handler is needed when you created custom types to use as fields in blocks. The handler will know how to make a copy of the field type and how to render it in the editor.
More...
Inherited by plyBloxKitEditor.AniClipNameData_Handler, plyBloxKitEditor.KeyCodeData_Handler, plyBloxKitEditor.ObjectPropertyData_Handler, plyBloxKitEditor.OnGUI_Content_Handler, plyBloxKitEditor.OnGUI_LayoutOption_Handler, plyBloxKitEditor.SceneNameTextData_Handler, plyGameEditor.CharaAniClipNameData_Handler, plyGameEditor.EquipSlotData_Handler, plyGameEditor.FactionFieldData_Handler, plyGameEditor.InputDefNameTextData_Handler, plyGameEditor.ItemFieldData_Handler, plyGameEditor.MarkerFieldData_Handler, plyGameEditor.ScreenDefNameTextData_Handler, and plyGameEditor.SkillFieldData_Handler.
|
abstract object | GetCopy (object obj) |
| Override this. Should return a copy of the passed field (obj). More...
|
|
abstract void | OnFocus (object obj, plyBlock fieldOfBlock) |
| Override this. Called when the blocks was focused (selected) (clicked on). Good place to init some temp variables that might be used in DrawField() More...
|
|
abstract object | DrawField (object obj, plyBlock fieldOfBlock) |
| Override this. Called by the editor when it wants the custom property/ field to be rendered. More...
|
|
|
plyBloxEd | ed |
| Will be set to the Editor. Useful when ed.Repaint() or ed.ForceSerialise() is needed.
|
|
A field handler is needed when you created custom types to use as fields in blocks. The handler will know how to make a copy of the field type and how to render it in the editor.
abstract object plyBloxKitEditor.plyBlockFieldHandler.DrawField |
( |
object |
obj, |
|
|
plyBlock |
fieldOfBlock |
|
) |
| |
|
pure virtual |
Override this. Called by the editor when it wants the custom property/ field to be rendered.
- Parameters
-
obj | The field. |
fieldOfBlock | The plyBlock that this field is used in. |
abstract object plyBloxKitEditor.plyBlockFieldHandler.GetCopy |
( |
object |
obj | ) |
|
|
pure virtual |
Override this. Should return a copy of the passed field (obj).
abstract void plyBloxKitEditor.plyBlockFieldHandler.OnFocus |
( |
object |
obj, |
|
|
plyBlock |
fieldOfBlock |
|
) |
| |
|
pure virtual |
Override this. Called when the blocks was focused (selected) (clicked on). Good place to init some temp variables that might be used in DrawField()
- Parameters
-
obj | The field. |
fieldOfBlock | The plyBlock that this field is used in. |