Preload (Method)

From Legacy Roblox Wiki
Revision as of 00:39, 25 December 2010 by >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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Preload( string asset )
Returns nil
Description: Preloads an asset to the client, so the client will not have to load the asset later.
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")