Attribute Tags
Custom attribute tags to add some additional easy to use layout controls in the inspector. This can allow a more efficient use of inspector space without having to write a full custom editor or property drawer.
Info ( lineNum : int )
When used with a string field, will display the string in a text box with lineNum lines. If used with a field that is not a string, an error message will be displayed.
Split1 ( )
Split1 ( percent : int )
Split1 ( tooltip : string )
Split1 ( percent : int, tooltip : string )
Split1 ( shortField : bool )
Split1 ( shortField : bool, percent : int )
Split1 ( shortField : bool, tooltip : string )
Split1 ( shortField : bool, percent : int, tooltip : string )
Will display the field in a portion of the inspector before percent split point. If percent is not specified, it will default to the first 50%.
If shortField is true, the area of the field will be halved, giving more room for the label.
Split2 ( )
Split2 ( percent : int )
Split2 ( tooltip : string )
Split2 ( percent : int, tooltip : string )
Split2 ( shortField : bool )
Split2 ( shortField : bool, percent : int )
Split2 ( shortField : bool, tooltip : string )
Split2 ( shortField : bool, percent : int, tooltip : string )
Split2 ( myHeight : float )
Split2 ( percent : int, myHeight : float )
Split2 ( tooltip : string, myHeight : float )
Split2 ( percent : int, tooltip : string, myHeight : float )
Split2 ( shortField : bool, myHeight : float )
Split2 ( shortField : bool, percent : int, myHeight : float )
Split2 ( shortField : bool, tooltip : string, myHeight : float )
Split2 ( shortField : bool, percent : int, tooltip : string, myHeight : float )
Will display the field in a portion of the inspector after percent split point. If percent is not specified, it will default to the last 50%.
If shortField is true, the area of the field will be halved, giving more room for the label.
If myHeight is specified, it will raise the height position of the field by that amount, otherwise it will default to 18f.
Custom attribute tags to add some additional easy to use layout controls in the inspector. This can allow a more efficient use of inspector space without having to write a full custom editor or property drawer.
Info ( lineNum : int )
When used with a string field, will display the string in a text box with lineNum lines. If used with a field that is not a string, an error message will be displayed.
Split1 ( )
Split1 ( percent : int )
Split1 ( tooltip : string )
Split1 ( percent : int, tooltip : string )
Split1 ( shortField : bool )
Split1 ( shortField : bool, percent : int )
Split1 ( shortField : bool, tooltip : string )
Split1 ( shortField : bool, percent : int, tooltip : string )
Will display the field in a portion of the inspector before percent split point. If percent is not specified, it will default to the first 50%.
If shortField is true, the area of the field will be halved, giving more room for the label.
Split2 ( )
Split2 ( percent : int )
Split2 ( tooltip : string )
Split2 ( percent : int, tooltip : string )
Split2 ( shortField : bool )
Split2 ( shortField : bool, percent : int )
Split2 ( shortField : bool, tooltip : string )
Split2 ( shortField : bool, percent : int, tooltip : string )
Split2 ( myHeight : float )
Split2 ( percent : int, myHeight : float )
Split2 ( tooltip : string, myHeight : float )
Split2 ( percent : int, tooltip : string, myHeight : float )
Split2 ( shortField : bool, myHeight : float )
Split2 ( shortField : bool, percent : int, myHeight : float )
Split2 ( shortField : bool, tooltip : string, myHeight : float )
Split2 ( shortField : bool, percent : int, tooltip : string, myHeight : float )
Will display the field in a portion of the inspector after percent split point. If percent is not specified, it will default to the last 50%.
If shortField is true, the area of the field will be halved, giving more room for the label.
If myHeight is specified, it will raise the height position of the field by that amount, otherwise it will default to 18f.