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

fix: GetCamera() related updates #112

Merged
merged 4 commits into from
Feb 19, 2024
Merged

Conversation

Doprez
Copy link
Collaborator

@Doprez Doprez commented Feb 19, 2024

Added the following methods
Entity.FindEntityRecursive() //to recursively search for an entity in the scene
Entity.GetComponentInChildren // recursively search through children to find a component
Scene.GetCamera() // returns the first camera in a scene
Scene.GetCamera(string) // returns the first camera in a scene with a given Entity name

Made the following extensions obsolete and added replacements.
ScriptComponent.GetCamera()
ScriptComponent.GetCamera(string)
ScriptComponent.GetFirstCamera()

replaced with:
GetGCCamera()
GetGCCamera(string)
GetFirstGCCamera

this should be a resolution to #75

@VaclavElias VaclavElias merged commit 8378384 into stride3d:main Feb 19, 2024
@VaclavElias VaclavElias added the engineering Makes the pull request to appear in the "Engineering" section of the next release note label Feb 19, 2024
@VaclavElias VaclavElias changed the title Fix getcamera fix: GetCamera() related updates Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engineering Makes the pull request to appear in the "Engineering" section of the next release note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants