-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
RID Objects are always "Invalid RID" #33797
Comments
The only mention of godot/editor/editor_properties.cpp Lines 2060 to 2068 in 37b230f
I don't think the |
@bojidar-bg Alright, that makes sense, BUT, trying to call any kind of method on that RID object just gives me:
I havent been able to call any kind of method on any returned RID object.
Yes, you are right, it returns EDIT: Of course, that would make sense if RID is just a number(?). But then, how can i use the RID of the visual server, for example, to create a canvas item in it? |
NVM, i think my confusion was just with the |
Looking back, the problem started when i was following the docs in an attempt to replicate:
|
Isn't Godot actually converting into a RID if the parameter inherits |
@Zylann Yeah, i think you're right 😵😵. Now I'm lost. |
Furthermore, if you somehow expose RID property, it won't be saved properly in a |
I'm trying to use Sample project in Godot 3.2.2 |
Creating and working with RIDs directly using VisualServer works, so that Invalid RID message in the inspector is indeed misleading. |
Godot version:
Beta 1
OS/device including version:
Windows 10 1903
Issue description:
No matter which function i use, the RID object always gives
Invalid RID
.Steps to reproduce:
Try any of these:
var ps_rid = get_viewport().get_world().get_space() # ps_rid is Invalid RID
var vs_rid = get_viewport().get_world().get_canvas() # vs_rid is Invalid RID
The text was updated successfully, but these errors were encountered: