Preload (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy New page: <onlyinclude>{{Method |name = Preload |arguments = string ''asset'' |description = Preloads an asset to the client, so the client will not have to load the asset later. |object = Conte... |
>LPGhatguy Rewording |
||
Line 2: | Line 2: | ||
|name = Preload | |name = Preload | ||
|arguments = [[string]] ''asset'' | |arguments = [[string]] ''asset'' | ||
|description = | |description = Downloads the requested asset to the client and prepares it for use. | ||
|object = ContentProvider | |object = ContentProvider | ||
}}</onlyinclude> | }}</onlyinclude> |
Revision as of 20:55, 27 December 2010
Preload( string asset ) | |
Returns | nil |
Description: | Downloads the requested asset to the client and prepares it for use. |
Member of: | ContentProvider |
Example
Can be used to load an asset (common assets loaded are images) so it doesn't take any time when shown as textures or decals.
Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=2453543")