Click or drag to resize

AnimatedTextureSetFrameTexture Method

Note: This API is now obsolete.

Assigns a Texture to the given frame. Frame IDs start at 0, so the first frame has ID 0, and the last frame of the animation has ID Frames - 1.

You can define any number of textures up to , but keep in mind that only frames from 0 to Frames - 1 will be part of the animation.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
[ObsoleteAttribute("SetFrameTexture is deprecated. Use the Frame255__texture property instead.")]
public void SetFrameTexture(
	int frame,
	Texture texture
)

Parameters

frame
Type: SystemInt32

[Missing <param name="frame"/> documentation for "M:Godot.AnimatedTexture.SetFrameTexture(System.Int32,Godot.Texture)"]

texture
Type: GodotTexture

[Missing <param name="texture"/> documentation for "M:Godot.AnimatedTexture.SetFrameTexture(System.Int32,Godot.Texture)"]

See Also