diff options
author | SaracenOne <SaracenOne@gmail.com> | 2022-08-28 07:17:25 +0100 |
---|---|---|
committer | SaracenOne <SaracenOne@gmail.com> | 2022-09-11 00:11:33 +0100 |
commit | cc4bda85008a6c2bd78d86bab6e836b3d3273e03 (patch) | |
tree | 8272aec32a0eadb4f82b495fc16c7b487f239507 /scene/main | |
parent | c658fa8b77eb701ddb504cba14fe2c966b7bb105 (diff) |
Add ability to flag classes as experimental or deprecated.
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/node.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/node.h b/scene/main/node.h index 39225b1358..13a938ef97 100644 --- a/scene/main/node.h +++ b/scene/main/node.h @@ -529,4 +529,8 @@ Error Node::rpc_id(int p_peer_id, const StringName &p_method, VarArgs... p_args) return rpcp(p_peer_id, p_method, sizeof...(p_args) == 0 ? nullptr : (const Variant **)argptrs, sizeof...(p_args)); } +// Add these macro to your class's 'get_configuration_warnings' function to have warnings show up in the scene tree inspector. +#define DEPRECATED_NODE_WARNING warnings.push_back(RTR("This node is marked as deprecated and will be removed in future versions.\nPlease check the Godot documentation for information about migration.")); +#define EXPERIMENTAL_NODE_WARNING warnings.push_back(RTR("This node is marked as experimental and may be subject to removal or major changes in future versions.")); + #endif // NODE_H |