Description
Disable saving of script containing this command. After this, the script can work with data types which do not support serialization (UI types).
Note
See Namespace serialization for more information.
Important
In Arma 2 and up to a certain version of Arma 3, giving a Display or Control to spawned code would raise an error due to the usage of the then non-serializable _this variable. Using disableSerialization or uiNamespace wouldn't help; the trick here is to pass the argument inside an array:
_display = findDisplay 46;
_display spawn { hint str _this; };
[_display] spawn { hint str (_this select 0); };
Syntax
disableSerialization
Returns: Nothing
Examples
Example 1
disableSerialization;
private _display = findDisplay 46;
See also
Display · displayAddEventHandler · displayRemoveAllEventHandlers · displayRemoveEventHandler · uiSleep