Attribute for Block definitions. More...
Inherits Attribute.
Public Member Functions | |
plyBlockAttribute (string mainGroup, string subGroup, string name, BlockType blockType) | |
bool | IsValidFollow (System.Type t) |
Public Attributes | |
string | MainGroup |
Main group this block belongs to. | |
string | SubGroup |
Sub-group this block belongs to. | |
string | Name |
Name shown in list of blocks. | |
string | Description |
description of block will appear as help/ info area of Blox editor | |
BlockType | Type |
Block type. | |
string | CustomStyle |
If set then this style will be used rather than the default of the chosen block type: CustomStyle = "plyBlox_VarYellowDark". | |
int | Order = 0 |
The order of the block's sub-group. This should be the same as other blocks in the same sub-group else the order chosen may vary. | |
System.Type[] | FollowOnly = null |
If set then this Block can only be added to the tail (below) of the specified block type(s) | |
string | ShowName = null |
If set then this name will be shown when the block is in the Graph (main editor area of Blox editor) | |
string | ShowIcon = null |
If set then the named icon will be used. plyBloxGUI.blockIcons contains all icons that can be used by this. | |
string | ReturnValueString = null |
Part of the info shown in the help area of the Blox editor. Shows what type of value this Block returns if it is a variable type block. | |
System.Type | ReturnValueType = null |
set this to the type returned by the block (leave null if nothing expected back from block). Used when checking if this block can be used as a field in other blocks. | |
bool | ShowInList = true |
Set to false if this block should not be visible for picking for whatever reason. | |
Attribute for Block definitions.