Click or drag to resize

ResourcePreloaderAddResource Method

Adds a resource to the preloader with the given name. If a resource with the given name already exists, the new resource will be renamed to "name N" where N is an incrementing number starting from 2.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddResource(
	string name,
	Resource resource
)

Parameters

name
Type: SystemString

[Missing <param name="name"/> documentation for "M:Godot.ResourcePreloader.AddResource(System.String,Godot.Resource)"]

resource
Type: GodotResource

[Missing <param name="resource"/> documentation for "M:Godot.ResourcePreloader.AddResource(System.String,Godot.Resource)"]

See Also