set persist node's hideFlags to DontSave when switch scene (#11627)

* set persist node's hideFlags to DontSave when switch scene

* refine log
This commit is contained in:
Santy-Wang
2022-06-20 23:18:41 +08:00
committed by GitHub
parent 22eb9316f0
commit 8ca3044cdf
5 changed files with 39 additions and 5 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ ccstd::unordered_map<int, ccstd::string> debugInfos = {
{ 3660, "You are explicitly specifying `undefined` type to cc property '%s' of cc class '%s'.\nIs this intended? If not, this may indicate a circular reference.\nFor example:\n\n \n// foo.ts\nimport { _decorator } from 'cc';\nimport { Bar } from './bar'; // Given that './bar' also reference 'foo.ts'.\n // When importing './bar', execution of './bar' is hung on to wait execution of 'foo.ts',\n // the `Bar` imported here is `undefined` until './bar' finish its execution.\n // It leads to that\n@_decorator.ccclass // ↓\nexport class Foo { // ↓\n @_decorator.type(Bar) // → is equivalent to `@_decorator.type(undefined)`\n public bar: Bar; // To eliminate this error, either:\n // - Refactor your module structure(recommended), or\n // - specify the type as cc class name: `@_decorator.type('Bar'/* or any name you specified for `Bar` */)`\n}" },
{ 3700, "internal error: _prefab is undefined" },
{ 3701, "Failed to load prefab asset for node '%s'" },
{ 3800, "The target can not be made persist because it's not a cc.Node or it doesn't have _id property." },
{ 3800, "The target can not be made persist because it's not a cc.Node or it doesn't have _id property or it's not in the current scene" },
{ 3801, "The node can not be made persist because it's not under root node." },
{ 3802, "The node can not be made persist because it's not in current scene." },
{ 3803, "The target can not be made persist because it's not a cc.Node or it doesn't have _id property." },