I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

Difference between revisions of "UnrealScript syntax"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (Keywords: Added ForceScriptOrder)
(Keywords: Added the new code block statement FilterEditorOnly, CrossLevelActive and NativeOnly.)
 
(9 intermediate revisions by 2 users not shown)
Line 24: Line 24:
  
 
==Keywords==
 
==Keywords==
This section lists all known UnrealScript keywords(178). This includes hardcoded funtionality of arrays like Insert etc, as well '''d'''eprecated, '''p'''ostponed, '''r'''e-named and '''c'''anceled keywords.
+
This section lists all known UnrealScript keywords(188). This includes hard-coded functionality of arrays like '''Insert''' etc, as well '''d'''eprecated, '''p'''ostponed, '''r'''e-named and '''c'''anceled keywords. Note that most keywords are context-sensitive in UnrealScript, so you can use most of these for member or type names as well.
  
 
{|
 
{|
Line 33: Line 33:
 
*[[Abstract]]
 
*[[Abstract]]
 
*[[Add]]
 
*[[Add]]
*[[AddIndex]]
 
 
*[[AddItem]]
 
*[[AddItem]]
 
*[[Always]]<sup>C</sup>
 
*[[Always]]<sup>C</sup>
 +
*[[Archetype]]
 
*[[Array]]
 
*[[Array]]
 
*[[ArrayCount]]
 
*[[ArrayCount]]
Line 50: Line 50:
 
*[[Bool]]
 
*[[Bool]]
 
*[[Break]]
 
*[[Break]]
 +
*[[Button]]
 
*[[Byte]]
 
*[[Byte]]
 
|
 
|
Line 57: Line 58:
 
*[[Cache]]
 
*[[Cache]]
 
*[[Class]]
 
*[[Class]]
 +
*[[ClassGroup]]
 
*[[Client]]
 
*[[Client]]
*[[Cpptext|CppStruct]]<sup>R</sup>
 
*[[Cpptext|CppText]]
 
 
*[[Coerce]]
 
*[[Coerce]]
 
*[[CollapseCategories]]
 
*[[CollapseCategories]]
Line 65: Line 65:
 
*[[Const]]
 
*[[Const]]
 
*[[Continue]]
 
*[[Continue]]
 +
*[[Cpptext|CppStruct]]<sup>R</sup>
 +
*[[Cpptext|CppText]]
 +
*[[CrossLevelActive]]
 
*[[CrossLevelPassive]]
 
*[[CrossLevelPassive]]
 
|
 
|
Line 75: Line 78:
 
*[[DependsOn]]
 
*[[DependsOn]]
 
*[[Deprecated]]
 
*[[Deprecated]]
 +
*[[Depreciated]]<sup>U2</sup>
 
*[[Do]]
 
*[[Do]]
 
*[[DontAutoCollapseCategories]]
 
*[[DontAutoCollapseCategories]]
 
*[[DontCollapseCategories]]
 
*[[DontCollapseCategories]]
 +
*[[DontSortCategories]]
 
*[[DLLBind]]
 
*[[DLLBind]]
 
*[[DLLImport]]
 
*[[DLLImport]]
Line 108: Line 113:
 
===F===
 
===F===
 
*[[False]]
 
*[[False]]
 +
*[[FilterEditorOnly]]
 
*[[Final]]
 
*[[Final]]
 
*[[Find]]
 
*[[Find]]
Line 149: Line 155:
 
|
 
|
 
===K===
 
===K===
*[[K2Pure]]
 
 
*[[K2Call]]
 
*[[K2Call]]
 +
*[[K2Override]]
 +
*[[K2Pure]]
 
|
 
|
 
===L===
 
===L===
Line 166: Line 173:
 
*[[NameOf]]
 
*[[NameOf]]
 
*[[Native]]
 
*[[Native]]
 +
*[[NativeOnly]]
 
*[[NativeReplication]]
 
*[[NativeReplication]]
 
*[[New]]
 
*[[New]]
Line 174: Line 182:
 
*[[None]]
 
*[[None]]
 
*[[NonTransactional]]
 
*[[NonTransactional]]
 +
*[[NonTransient]]
 
*[[NotEditInlineNew]]
 
*[[NotEditInlineNew]]
 
*[[NotForConsole]]
 
*[[NotForConsole]]
 
*[[NotInstanced]]
 
*[[NotInstanced]]
 
*[[NotPlaceable]]
 
*[[NotPlaceable]]
*[[NotTransient]]
 
 
*[[NoUserCreate]]
 
*[[NoUserCreate]]
 
|
 
|
Line 184: Line 192:
 
*[[Operator]]
 
*[[Operator]]
 
*[[Optional]]
 
*[[Optional]]
 +
*[[OrderedArray]]<sup>U2</sup>
 
*[[Out]]
 
*[[Out]]
 
|-valign="top"
 
|-valign="top"
Line 209: Line 218:
 
*[[Replication]]
 
*[[Replication]]
 
*[[RepNotify]]
 
*[[RepNotify]]
 +
*[[RepRetry]]
 
*[[Return]]
 
*[[Return]]
 
*[[Rot]]
 
*[[Rot]]

Latest revision as of 11:27, 11 June 2012

Style[edit]

These sections explain styles you should use. The style is based upon Epic's style used in UnrealScript.


Names[edit]

All variable/function names should be UpperCamelCased, e.g. var Object OwnerObject.

Bool[edit]

Bool's should start with a lowercase b, e.g. bool bUnrealScriptStyle.

Enum[edit]

Enum's should start with uppercase E, e.g. enum EUnrealScriptStyle. Members should all start with all uppercase characters of the enum's name followed by a _, e.g.

enum EUnrealScriptStyle
{
    USS_Personal,
    USS_EpicGames
};

Interface[edit]

Interface's should start with a uppercase I, e.g. interface IUnrealScriptStyle.

Keywords[edit]

This section lists all known UnrealScript keywords(188). This includes hard-coded functionality of arrays like Insert etc, as well deprecated, postponed, re-named and canceled keywords. Note that most keywords are context-sensitive in UnrealScript, so you can use most of these for member or type names as well.

A[edit]

B[edit]

C[edit]

D[edit]

E[edit]

F[edit]

G[edit]

H[edit]

I[edit]

K[edit]

L[edit]

M[edit]

N[edit]

O[edit]

P[edit]

R[edit]

S[edit]

T[edit]

U[edit]

V[edit]

W[edit]