IssueRaiser

Allow circular dependencies/references for resources in export var

### Describe the project you are working on I'm working on a game with many characters where the data about their personal lives is stored in resources which need to be accessed from a variety of .tscn files. There are many times different characters need to reference each other e.g. I have an export var which is an array of family members, and all the family members have references to each other. ### Describe the problem or limitation you are having in your project Godot does not allow circular references in resources in export vars. I apologise if this is the wrong place to post about this, it seemed the most appropriate to me, as this isn't a bug (it seems intentional), and I would like to see if it's possible/desirable to change this. ### Describe the feature / enhancement and how it helps to overcome the problem or limitation I'm not understanding the reason why resources can't have circular dependencies. I've looked through the forums and the issues on github and I see several thread about making the editor prevent circular dependencies instead of crashing, but I haven't been able to find an explanation for why this happens in the first place. I'm hoping someone can point me to a discussion thread, or even some of the godot source code I understood the ref-counted issue, but it seems to have been resolved in [#67714](https://github.com/godotengine/godot/pull/67714), and I was looking at [68281](https://github.com/godotengine/godot/pull/68281) and I'm not s

Posted by rossunger on Jul 24, 2023, 1:51 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

github (Software)

Allow circular dependencies/references for resources in export var

rossungerJul 24, 2023, 1:51 PM

### Describe the project you are working on I'm working on a game with many characters where the data about their personal lives is stored in resources which need to be accessed from a variety of .tscn files. There are many times different characters need to reference each other e.g. I have an export var which is an array of family members, and all the family members have references to each other. ### Describe the problem or limitation you are having in your project Godot does not allow circular references in resources in export vars. I apologise if this is the wrong place to post about this, it seemed the most appropriate to me, as this isn't a bug (it seems intentional), and I would like to see if it's possible/desirable to change this. ### Describe the feature / enhancement and how it helps to overcome the problem or limitation I'm not understanding the reason why resources can't have circular dependencies. I've looked through the forums and the issues on github and I see several thread about making the editor prevent circular dependencies instead of crashing, but I haven't been able to find an explanation for why this happens in the first place. I'm hoping someone can point me to a discussion thread, or even some of the godot source code I understood the ref-counted issue, but it seems to have been resolved in [#67714](https://github.com/godotengine/godot/pull/67714), and I was looking at [68281](https://github.com/godotengine/godot/pull/68281) and I'm not s

Comments (0)

No comments yet. Start the discussion.

Comment on this issue