There is no spoon

Difference between revisions of "UnrealScript syntax"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (Keywords: Corrected more links)
m (Keywords: Added AutoCollapseCategories and DontAutoCollapseCategories)
Line 3: Line 3:
  
 
{| align="center" cellspacing="0" cellpadding="3" border="1" style="background-color:#FAFAFA;" |  
 
{| align="center" cellspacing="0" cellpadding="3" border="1" style="background-color:#FAFAFA;" |  
|+ | '''171 UnrealScript keywords'''
+
|+ | '''173 UnrealScript keywords'''
 
|-
 
|-
 
|[[Abstract]]
 
|[[Abstract]]
Line 16: Line 16:
 
|[[AtomicWhenCooked]]
 
|[[AtomicWhenCooked]]
 
|[[Auto]]
 
|[[Auto]]
 +
|[[AutoCollapseCategories]]
 
|[[AutoExpandCategories]]
 
|[[AutoExpandCategories]]
 
|[[Automated]]
 
|[[Automated]]
Line 22: Line 23:
 
|[[Bool]]
 
|[[Bool]]
 
|[[Break]]
 
|[[Break]]
|[[Byte]]
 
 
|-
 
|-
 +
|[[Byte]]
 
|[[Case]]
 
|[[Case]]
 
|[[CacheExempt]]
 
|[[CacheExempt]]
Line 31: Line 32:
 
|[[Cpptext|CppStruct]]
 
|[[Cpptext|CppStruct]]
 
|[[Cpptext|CppText]]
 
|[[Cpptext|CppText]]
|[[Coerce]]
 
 
|-
 
|-
 +
|[[Coerce]]
 
|[[CollapseCategories]]
 
|[[CollapseCategories]]
 
|[[Config]]
 
|[[Config]]
Line 41: Line 42:
 
|[[DataBinding]]
 
|[[DataBinding]]
 
|[[Default]]
 
|[[Default]]
|[[Defaultproperties|DefaultProperties]]
 
 
|-
 
|-
 +
|[[Defaultproperties|DefaultProperties]]
 
|[[Delegate]]
 
|[[Delegate]]
 
|[[DemoRecording]]
 
|[[DemoRecording]]
Line 48: Line 49:
 
|[[Deprecated]]
 
|[[Deprecated]]
 
|[[Do]]
 
|[[Do]]
 +
|[[DontAutoCollapseCategories]]
 
|[[DontCollapseCategories]]
 
|[[DontCollapseCategories]]
 +
|-
 
|[[DLLBind]]
 
|[[DLLBind]]
 
|[[DLLImport]]
 
|[[DLLImport]]
|-
 
 
|[[DuplicateTransient]]
 
|[[DuplicateTransient]]
  
Line 59: Line 61:
 
|[[EditFixedSize]]
 
|[[EditFixedSize]]
 
|[[EditHide]]
 
|[[EditHide]]
 +
|-
 
|[[EditorOnly]]
 
|[[EditorOnly]]
 
|[[EditInline]]
 
|[[EditInline]]
|-
 
 
|[[EditInlineNew]]
 
|[[EditInlineNew]]
 
|[[EditInlineNotify]]
 
|[[EditInlineNotify]]
Line 68: Line 70:
 
|[[Else]]
 
|[[Else]]
 
|[[Empty]]
 
|[[Empty]]
 +
|-
 
|[[End]]
 
|[[End]]
 
|[[Enum]]
 
|[[Enum]]
|-
 
 
|[[EnumCount]]
 
|[[EnumCount]]
 
|[[Event]]
 
|[[Event]]
Line 77: Line 79:
 
|[[Export]]
 
|[[Export]]
 
|[[ExportStructs]]
 
|[[ExportStructs]]
 +
|-
 
|[[Extends]]
 
|[[Extends]]
  
 
|[[False]]
 
|[[False]]
|-
 
 
|[[Final]]
 
|[[Final]]
 
|[[Find]]
 
|[[Find]]
Line 87: Line 89:
 
|[[ForEach]]
 
|[[ForEach]]
 
|[[Function]]
 
|[[Function]]
 
+
|-
 
|[[Global]]
 
|[[Global]]
 
|[[GlobalConfig]]
 
|[[GlobalConfig]]
|-
 
 
|[[GoTo]]
 
|[[GoTo]]
 
|[[Guid]]
 
|[[Guid]]
Line 99: Line 100:
 
|[[If]]
 
|[[If]]
 
|[[Ignores]]
 
|[[Ignores]]
 +
|-
 
|[[Immutable]]
 
|[[Immutable]]
 
|[[ImmutableWhenCooked]]
 
|[[ImmutableWhenCooked]]
|-
 
 
|[[Implements]]
 
|[[Implements]]
 
|[[Import]]
 
|[[Import]]
Line 108: Line 109:
 
|[[Input]]
 
|[[Input]]
 
|[[Insert]]
 
|[[Insert]]
 +
|-
 
|[[InsertItem]]
 
|[[InsertItem]]
 
|[[Instanced]]
 
|[[Instanced]]
|-
 
 
|[[Int]]
 
|[[Int]]
 
|[[Interface]]
 
|[[Interface]]
Line 117: Line 118:
 
|[[Invariant]]
 
|[[Invariant]]
 
|[[Iterator]]
 
|[[Iterator]]
 
+
|-
 
|[[Latent]]
 
|[[Latent]]
 
|[[Length]]
 
|[[Length]]
|-
 
 
|[[Local]]
 
|[[Local]]
 
|[[Localized]]
 
|[[Localized]]
Line 129: Line 129:
 
|[[Name]]
 
|[[Name]]
 
|[[Native]]
 
|[[Native]]
 +
|-
 
|[[NativeReplication]]
 
|[[NativeReplication]]
 
|[[New]]
 
|[[New]]
|-
 
 
|[[NoExport]]
 
|[[NoExport]]
 
|[[NoExportHeader]]
 
|[[NoExportHeader]]
Line 138: Line 138:
 
|[[None]]
 
|[[None]]
 
|[[NonTransactional]]
 
|[[NonTransactional]]
 +
|-
 
|[[NotEditInlineNew]]
 
|[[NotEditInlineNew]]
 
|[[NotForConsole]]
 
|[[NotForConsole]]
|-
 
 
|[[NotInstanced]]
 
|[[NotInstanced]]
 
|[[NotPlaceable]]
 
|[[NotPlaceable]]
Line 148: Line 148:
 
|[[Operator]]
 
|[[Operator]]
 
|[[Optional]]
 
|[[Optional]]
 +
|-
 
|[[Out]]
 
|[[Out]]
  
 
|[[ParseConfig]]
 
|[[ParseConfig]]
|-
 
 
|[[PerObjectConfig]]
 
|[[PerObjectConfig]]
 
|[[PerObjectLocalized]]
 
|[[PerObjectLocalized]]
Line 158: Line 158:
 
|[[PrivateWrite]]
 
|[[PrivateWrite]]
 
|[[PreOperator]]
 
|[[PreOperator]]
 +
|-
 
|[[Protected]]
 
|[[Protected]]
 
|[[ProtectedWrite]]
 
|[[ProtectedWrite]]
|-
 
 
|[[Pointer]]
 
|[[Pointer]]
 
|[[PostOperator]]
 
|[[PostOperator]]
Line 168: Line 168:
 
|[[Remove]]
 
|[[Remove]]
 
|[[RemoveIndex]]
 
|[[RemoveIndex]]
 +
|-
 
|[[RemoveItem]]
 
|[[RemoveItem]]
 
|[[Replace]]
 
|[[Replace]]
|-
 
 
|[[Replication]]
 
|[[Replication]]
 
|[[RepNotify]]
 
|[[RepNotify]]
Line 178: Line 178:
  
 
|[[ShowCategories]]
 
|[[ShowCategories]]
 +
|-
 
|[[Cpptext|StructCppText]]
 
|[[Cpptext|StructCppText]]
 
|[[Structdefaultproperties|StructDefaultProperties]]
 
|[[Structdefaultproperties|StructDefaultProperties]]
|-
 
 
|[[Structdefaultproperties|StructDefaults]]
 
|[[Structdefaultproperties|StructDefaults]]
 
|[[SafeReplace]]
 
|[[SafeReplace]]
Line 187: Line 187:
 
|[[SerializeText]]
 
|[[SerializeText]]
 
|[[Simulated]]
 
|[[Simulated]]
 +
|-
 
|[[Singular]]
 
|[[Singular]]
 
|[[Skip]]
 
|[[Skip]]
|-
 
 
|[[Sort]]
 
|[[Sort]]
 
|[[State]]
 
|[[State]]
Line 196: Line 196:
 
|[[String]]
 
|[[String]]
 
|[[Struct]]
 
|[[Struct]]
 +
|-
 
|[[Super]]
 
|[[Super]]
 
|[[Switch]]
 
|[[Switch]]
|-
+
 
 
|[[Transient]]
 
|[[Transient]]
 
|[[Travel]]
 
|[[Travel]]
Line 206: Line 207:
 
|[[Until]]
 
|[[Until]]
 
|[[Using]]
 
|[[Using]]
 
+
|-
 
|[[Var]]
 
|[[Var]]
 
|[[Vect]]
 
|[[Vect]]
|-
 
 
|[[Virtual]]
 
|[[Virtual]]
  
Line 215: Line 215:
 
|[[Within]]
 
|[[Within]]
  
| 
 
| 
 
 
| 
 
| 
 
| 
 
| 

Revision as of 11:36, 24 May 2010

Keywords

This section lists all known UnrealScript keywords this includes hardcoded funtionality of arrays like Insert etc, as well deprecated, postponed and canceled keywords.

173 UnrealScript keywords
Abstract Add AddIndex AddItem Array ArrayCount Assert Atomic
AtomicWhenCooked Auto AutoCollapseCategories AutoExpandCategories Automated Begin Bool Break
Byte Case CacheExempt Cache Class Client CppStruct CppText
Coerce CollapseCategories Config Const Continue CrossLevelPassive DataBinding Default
DefaultProperties Delegate DemoRecording DependsOn Deprecated Do DontAutoCollapseCategories DontCollapseCategories
DLLBind DLLImport DuplicateTransient EdFindable EditConst EditConstArray EditFixedSize EditHide
EditorOnly EditInline EditInlineNew EditInlineNotify EditInlineUse EditTextBox Else Empty
End Enum EnumCount Event Exec Expands Export ExportStructs
Extends False Final Find Float For ForEach Function
Global GlobalConfig GoTo Guid HideCategories HideDropDown If Ignores
Immutable ImmutableWhenCooked Implements Import Inherits Init Input Insert
InsertItem Instanced Int Interface Interp Intrinsic Invariant Iterator
Latent Length Local Localized Long Map Name Native
NativeReplication New NoExport NoExportHeader NoClear NoImport None NonTransactional
NotEditInlineNew NotForConsole NotInstanced NotPlaceable NotTransient NoUserCreate Operator Optional
Out ParseConfig PerObjectConfig PerObjectLocalized Placeable Private PrivateWrite PreOperator
Protected ProtectedWrite Pointer PostOperator Public Reliable Remove RemoveIndex
RemoveItem Replace Replication RepNotify Return Rot Rng ShowCategories
StructCppText StructDefaultProperties StructDefaults SafeReplace Self Server SerializeText Simulated
Singular Skip Sort State Stop StrictConfig String Struct
Super Switch Transient Travel True Unreliable Until Using
Var Vect Virtual While Within      

Style

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

Names

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

Bool

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

Enum

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

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