mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
Added Ref<T>::instance()
This commit is contained in:
@@ -162,6 +162,11 @@ public:
|
||||
reference = nullptr;
|
||||
}
|
||||
|
||||
void instance()
|
||||
{
|
||||
ref(new T);
|
||||
}
|
||||
|
||||
Ref()
|
||||
{
|
||||
reference = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user