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...
 
>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...
(No difference)

Revision as of 00:39, 25 December 2010

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")