Add EditorPropertyRID as read-only label showing RID

Fixes #24827.
This commit is contained in:
Rémi Verschelde
2019-01-13 15:43:25 +01:00
parent c6b587636b
commit 0b48484d49
3 changed files with 31 additions and 0 deletions

View File

@ -515,6 +515,15 @@ public:
EditorPropertyNodePath();
};
class EditorPropertyRID : public EditorProperty {
GDCLASS(EditorPropertyRID, EditorProperty)
Label *label;
public:
virtual void update_property();
EditorPropertyRID();
};
class EditorPropertyResource : public EditorProperty {
GDCLASS(EditorPropertyResource, EditorProperty)