Click or drag to resize

InstancePlaceholderReplaceByInstance Method

Replaces this placeholder by the scene handed as an argument, or the original scene if no argument is given. As for all resources, the scene is loaded only if it's not loaded already. By manually loading the scene beforehand, delays caused by this function can be avoided.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void ReplaceByInstance(
	PackedScene customScene = null
)

Parameters

customScene (Optional)
Type: GodotPackedScene

[Missing <param name="customScene"/> documentation for "M:Godot.InstancePlaceholder.ReplaceByInstance(Godot.PackedScene)"]

See Also