Click or drag to resize

SpriteIsPixelOpaque Method

Returns true, if the pixel at the given position is opaque and false in other case.

Note: It also returns false, if the sprite's texture is null or if the given position is invalid.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public bool IsPixelOpaque(
	Vector2 pos
)

Parameters

pos
Type: GodotVector2

[Missing <param name="pos"/> documentation for "M:Godot.Sprite.IsPixelOpaque(Godot.Vector2)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Godot.Sprite.IsPixelOpaque(Godot.Vector2)"]

See Also