Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Ref instantiate to accept constructor args #88183

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Feb 10, 2024

Expands functionality of Ref instantiate function by adding a variable arguments parameter. In isolation, this doesn't affect existing functionality, but moving forward this will let that function accept constructor arguments for whatever class is being instantiated. This will give all forms of construction the same single-function convenience that instantiate previously provided for empty constructors. Implemented on one file as a proof-of-concept, with potential for a repo-wide sweep down the road.

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Feb 12, 2024
@akien-mga akien-mga merged commit 75a8c8a into godotengine:master Feb 12, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Repiteo Repiteo deleted the ref-instantiate-params branch February 12, 2024 13:38
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.

4 participants