-
-
Notifications
You must be signed in to change notification settings - Fork 97
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 passing in packed scene or node to variable as long as it has that script. also allow exporting it #2699
Comments
Note this would also work on non exports |
@dalexeev can you provide why you are confused about this? |
these are related |
Because there is a mixture of different types. Don't mix You are trying to solve the same problem of linking scenes and scripts in different ways and have already created about 5 proposals on this topic, but IMO they are bad. I like willnationsdev's suggestion much more. No, I'm not biased against you, most of your proposals have not been rated by me, and even, as far as I remember, there are one or two that I rated positively. Yes, I noted for myself that you make a lot of insufficiently thought out proposals (IMO), but I always try to be objective, and if I'm not sure that your proposal is bad, then I simply don't rate it. After all, even if suddenly I'm the only one to be biased against you, it won't be a problem if you can convince others that you are right. After all, I'm not even a maintainer, my opinion is not taken into account somehow especially. I am not conducting an agitation campaign against you, calm down. 😃 |
@dalexeev I wasn't angry 😃 I don't like willnationsdev's suggestion because it forces us to use a annotation in the script. if implicitness is what you don't like we could have a generic type for it. although I'm not sure what to call it. maybe NodeRef? its like saying as long as the root of the scene or the node has that script it is that type because it contains the logic and interface
|
|
I guess that is true. EDIT: EDIT2: |
I'm closing my bad proposals |
Describe the project you are working on
Spaceship game
Describe the problem or limitation you are having in your project
I need to export a certain type of packed scene which I went on discord to get help with..
@nisovin suggested I use something like this..
however using it creates a cylindrical refrence error and requires a tool property
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Can we have the ability to export class and class_names which take in a Node or PackedScene as long as it has that script?
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
This might require a api change on how packed scenes are instanced but I think it would benefit godot
Unity3D has something similar to this with MonoBehaviors and GameObjects where you can pass in GameObjects to a exported MonoBehavior as long as it has it.
If this enhancement will not be used often, can it be worked around with a few lines of script?
It would be used a lot.
also I'm not sure but its not easy to do if it can be worked around
Is there a reason why this should be core and not an add-on in the asset library?
It makes godot easier to use
The text was updated successfully, but these errors were encountered: