0 votes

I have a scene structure that looks like this:
Scene Structure
Scene Structure Link

Both the BaseEnemy and the InheritedScene are instanced to the World scene.

The InheritedScene inherits from the BaseEnemy by using the New Inherited Scene option, but when I change the modulate property (or any other property) of the BaseEnemy.tscn to other color, the instanced InheritedScene at the World node doesn't change but the InheritedScene.tscn changes.

I was wondering on why the instanced InheritedScene doesn't change when it should. An explanation of this would really help.

in Engine by (19 points)
edited by

Are you saving the tscn before checking if it changes? Does it work if your reopen the world scene?
Also make sure you didn't accidentally override modulate on the instance

Yes, I save the BaseEnemy.tscn before checking the changes, and the properties of the InheritedScene is not changed after being instance to World node.

Also, my bad, the World is just a 2D node and doesn't have its own .tscn file.

Maybe you cleared the Inheritance of the InheritedScene by mistake ? Go to InheritedScene Node and right click on it. See if you are getting Clear Inheritance option

I haven't. I can still see the Clear Inheritance option.
This also happens in the Design the GUI tutorial in the documentation, changing the properties of Bar.tscn doesn't change properties of its child's instances, LifeBar and EnergyBar.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories