Always snap to grid

Metadata

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 12:01, 22 April 2010 by Eliot (Talk | contribs) (Tags: Correction of sup's)

Jump to: navigation, search

Starting with Unreal Engine 3 UnrealScript supports Metadata for Variables which are used by UnrealEd to help out L.D.S (and any other kind of artists that use UnrealEd) to understand more about the variable by setting a friendly name for your variables and adding comments.


Declaration

Metatags can be added for almost any variable type some of them are struct's, enum members and variables.

A metatag is placed at the end of a variable before the final semi colon like:

var [modifiers] type variablename<tag=value>;

You can also declare more than one metatag by separating them with | like:

var [modifiers] type variablename<tag1=value|tag2=value>;

Tags


String ToolTip3
Sets the ToolTip description to show in the UnrealEd's properties window, you can also add a /** ... */ comment above the variable's declaration and the UnrealScript compiler will automatic use that as ToolTip however you can still use the ToolTip tag to override the automatic set ToolTip.
String DisplayName3
Sets the variable's name to the specified DisplayName value in UnrealEd.
Variable EditCondition3
Makes the variable non-editable in UnrealEd if the specified value of this tag is false, and editable if the specified value of this tag is true.
Bool AllowAbstract3
Specifies whether the user can select abstract classes from the UnrealEd drop-down list.
    • Limitations : Only works for variables of type class<...>. [confirm]
Bool AutoComment3
The effect of this tag seems to be that the tagged variable's value is displayed in the sequence object's comment in the Kismet editor.
    • Limitations : Apparently this tag only works in SequenceObject classes and also only if the class's bSuppressAutoComment property is set to false.
Bool FullyExpand3+[confirm]
Expand all sub nodes of this variable when expanded. [confirm]
    • Limitations : Only works for variables of type struct or editinline variables. [confirm]