Skip to content

GDScript: Deprecate type_exists() global function#116899

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
dalexeev:gds-deprecate-type-exists
Mar 16, 2026
Merged

GDScript: Deprecate type_exists() global function#116899
akien-mga merged 1 commit intogodotengine:masterfrom
dalexeev:gds-deprecate-type-exists

Conversation

@dalexeev
Copy link
Member

This function is a full alias for the ClassDB.class_exists() method. It does not support Variant types or global custom classes.

@dalexeev dalexeev added this to the 4.x milestone Feb 28, 2026
@dalexeev dalexeev requested review from a team as code owners February 28, 2026 18:56
Copy link
Member

@HolonProduction HolonProduction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me.

There is a link to this method in the documentation of @GDScript.is_instance_of. We should probably replace that as well.

@dalexeev dalexeev force-pushed the gds-deprecate-type-exists branch from 63a15ae to 65a7cab Compare March 15, 2026 09:26
@akien-mga akien-mga modified the milestones: 4.x, 4.7 Mar 16, 2026
@akien-mga akien-mga merged commit 5631c0a into godotengine:master Mar 16, 2026
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@dalexeev dalexeev deleted the gds-deprecate-type-exists branch March 16, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants