diff --git a/modules/users/doc_classes/User.xml b/modules/users/doc_classes/User.xml
index 9e4788ab2..7831c654f 100644
--- a/modules/users/doc_classes/User.xml
+++ b/modules/users/doc_classes/User.xml
@@ -125,6 +125,12 @@
Returns the stored [UserModule] that has it's name set as the name parameter.
+
+
+
+ Returns the owner [UserManager]. (The one that this User was created by.)
+
+
@@ -167,6 +173,14 @@
Notifies the active [UserManager] that this User needs to be saved.
+
+
+
+
+ Sets the owner [UserManager].
+ Only use this in [method UserManager._create_user] or if you know what you are doing.
+
+
diff --git a/modules/users/doc_classes/UserManager.xml b/modules/users/doc_classes/UserManager.xml
index 41370bb65..ffbf0bf74 100644
--- a/modules/users/doc_classes/UserManager.xml
+++ b/modules/users/doc_classes/UserManager.xml
@@ -20,14 +20,14 @@
The [code]user[/code] parameter allows for setting up classes that inherit from [User].
This is the method where [UserModule]s that the application always expects to be present should be set up.
Example:
- [code]func _create_user(user: User) -> User:
+ [code]func _create_user(user: User) -> User:
if !user:
user = InheritedUser.new()
-
+
var um : SomeUserModule = SomeUserModule.new()
um.module_name = "SomeUserModule"
user.add_module(um)
-
+
# Only needed if the default implementation is not called
#user.set_owner_user_manager(self)