-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 changing feature profile via EditorInterface
#74382
Conversation
EditorInterface
3c4765a
to
1cfa0b3
Compare
7cfcba2
to
4652603
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay to me, though I haven't tested / reviewed in depth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested either, but aside from a couple of notes the code seems fine. Comments need to be addressed though.
4652603
to
68e7d53
Compare
Here's a simple project for testing the new API: Feature Profiles API Test.zip It adds menu items in the "Project -> Tools -> Feature Profile" menu, and prints stuff to the Output window. The 3D feature gets toggled by it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One style change is needed, but otherwise looks fine.
68e7d53
to
8e0e81c
Compare
Thanks! |
EditorInterface.set_current_feature_profile(profile_name: String)
method to load a feature profile by name.EditorInterface.get_current_feature_profile()
method. This returns a string, but you can easily retrieve theEditorFeatureProfile
instance from it (see example project).This allows creating a plugin or editor script which can automatically generate and/or change feature profiles. Example project here.