There is no spoon

Native-only classes

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 08:32, 16 May 2008 by Wormbo (Talk | contribs) (New page: From the UnrealScript perspective, a '''native-only class''' is a class that does not have any UnrealScript source code associated to it. Not only its behavior, but even its declaratio...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the UnrealScript perspective, a native-only class is a class that does not have any UnrealScript source code associated to it. Not only its behavior, but even its declaration resides in native code. Such a class is not to be confused with UnrealScript classes that have had their source code stripped from the package file for various reasons. The latter had been declared and implemented in UnrealScript, while the former never had any UnrealScript code associated.

An examples for a native-only class is Sound in UT. You can use it as a variable, parameter or function return type and when referencing sounds with object literals, but there's no UnrealScript declaration for the class Sound itself in UT. Note that starting with UT2003 the class Sound no longer is native-only, but an UnrealScript class declared with the class modifier native.