DataCost (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac
Promoting the header!
>Legend26
No edit summary
 
(27 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Property
<onlyinclude>{{Property
|name=DataCost
|name=DataCost
|object=Instance
|object=Instance
|description=The amount of memory an object would take up when using [[SaveInstance]] on it.
|description=How much saving this instance with [[SaveInstance (Method)|SaveInstance]] will add to [[DataComplexity]]
|property=[[Integer]] ''dataCost''
|type = {{type|int}}
}}<noinclude>
|protected = true
 
}}</onlyinclude>
{{clear floats}}
== Usage ==
== Usage ==
The DataCost of an object is its own DataCost combined with the DataCosts of all its children.  If the DataCosts of all the instances saved to a certain player threaten to exceed 45,000, it will not be able to save.
The DataCost of an object is its own DataCost combined with the DataCosts of all its children.  If the DataCosts of all the instances saved to a certain player threaten to exceed 45,000, it will not be able to save. '''Used in [[Data Persistence]].'''
</noinclude>
</noinclude>
[[Category:Properties]]

Latest revision as of 20:03, 6 April 2012

DataCost
Type int
Description How much saving this instance with SaveInstance will add to DataComplexity
Member of Instance

Usage

The DataCost of an object is its own DataCost combined with the DataCosts of all its children. If the DataCosts of all the instances saved to a certain player threaten to exceed 45,000, it will not be able to save. Used in Data Persistence.