Migrating from CC 2.4.5 to 3.3.1

Hello!

To migrate my project from CC 2.4.5 to 3.3.1 – which modifications do I have to apply to my code?

All the best,
Fabian

1 Like

The most significant changes are that cc. is redudant, for example
cc.Node is now only Node (but needs import { Node } from "cc"
cc.Event.EventTarget is now only EventTarget

just to name a few

For more individual class changes you may look up the current docs, for example audio has changed quite a bit.

Thanks! Is there a migration guide / checklist?

https://docs.cocos.com/creator/3.1/manual/en/release-notes/

Thanks! I started the miration today.

I created an empty project in CC 3.3.1

I imported my 2.4.5 project. No errors showed up, besides two lines in my game.js that had ‘integer’ used, which I had to replace with CCInteger.

However, when I try to run my game, nothing is displayed;

But there are also no errors:

2021-11-17 10:55:31-log: [Scene] begin init
2021-11-17 10:55:31-log: [Scene] require engine end
2021-11-17 10:55:31-log: [Scene] Serialize end
2021-11-17 10:55:31-log: [Scene] configureStartup end
2021-11-17 10:55:31-info: [Scene] WebGL2 device initialized.
2021-11-17 10:55:31-log: [Scene] Cocos Creator v3.3.1
2021-11-17 10:55:31-warn: [Scene] You are explicitly specifying `undefined` type to cc property "retrievedMission" of cc class "Game".
Is this intended? If not, this may indicate a circular reference.
For example:

 
// foo.ts
import { _decorator } from 'cc';
import { Bar } from './bar';  // Given that './bar' also reference 'foo.ts'.
                              // When importing './bar', execution of './bar' is hung on to wait execution of 'foo.ts',
                              // the `Bar` imported here is `undefined` until './bar' finish its execution.
                              // It leads to that
@_decorator.ccclass           //  ↓
export class Foo {            //  ↓
    @_decorator.type(Bar)     //  → is equivalent to `@_decorator.type(undefined)`
    public bar: Bar;          // To eliminate this error, either:
                              // - Refactor your module structure(recommended), or
                              // - specify the type as cc class name: `@_decorator.type('Bar'/* or any name you specified for `Bar` */)`
}
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.lastPlayedAudio" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_us0" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_us1" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_us2" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_us3" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_us4" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_us5" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_us6" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_us0" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_us1" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_us2" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_us3" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_us4" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_us5" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_us6" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_000" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_001" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_002" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_003" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_004" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_010" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_011" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_012" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_013" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_014" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_015" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_016" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_020" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_021" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_022" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_023" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_024" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_025" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_026" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_030" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_031" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_032" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_033" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_034" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_035" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_036" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_040" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_041" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_042" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_043" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_044" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_045" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_046" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_050" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_051" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_052" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_053" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_054" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_055" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_056" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_t00" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_t01" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_t02" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_t03" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_t04" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_t05" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_t06" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_000" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_001" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_002" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_003" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_004" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_010" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_011" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_012" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_013" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_014" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_015" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_016" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_020" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_021" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_022" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_023" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_024" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_025" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_026" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_030" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_031" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_032" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_033" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_034" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_035" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_036" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_040" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_041" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_042" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_043" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_044" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_045" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_046" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_050" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_051" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_052" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_053" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_054" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_055" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_056" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_060" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_061" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_062" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_063" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_064" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_065" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_066" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_070" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_071" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_072" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_073" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_074" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_075" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_076" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_080" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_081" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_082" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_083" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_084" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_085" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_086" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_090" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_091" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_092" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_093" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_094" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_095" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_096" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_060" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_061" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_062" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_063" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_064" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_065" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_066" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_070" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_071" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_072" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_073" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_074" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_075" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_076" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_080" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_081" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_082" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_083" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_084" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_085" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_086" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_090" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_091" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_092" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_093" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_094" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_095" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.en_096" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_t00" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_t01" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_t02" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_t03" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_t04" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_t05" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.de_t06" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Game.intro_audio" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] You are explicitly specifying `undefined` type to cc property "currentMissionData" of cc class "Game".
Is this intended? If not, this may indicate a circular reference.
For example:

 
// foo.ts
import { _decorator } from 'cc';
import { Bar } from './bar';  // Given that './bar' also reference 'foo.ts'.
                              // When importing './bar', execution of './bar' is hung on to wait execution of 'foo.ts',
                              // the `Bar` imported here is `undefined` until './bar' finish its execution.
                              // It leads to that
@_decorator.ccclass           //  ↓
export class Foo {            //  ↓
    @_decorator.type(Bar)     //  → is equivalent to `@_decorator.type(undefined)`
    public bar: Bar;          // To eliminate this error, either:
                              // - Refactor your module structure(recommended), or
                              // - specify the type as cc class name: `@_decorator.type('Bar'/* or any name you specified for `Bar` */)`
}
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch00" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch01" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch02" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch03" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch04" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch05" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch06" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch07" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch08" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch09" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch10" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-warn: [Scene] Please specifiy a default value for "Glitching.glitch11" property at its declaration:

 
// Before:
@property(...)
myProp;
// After:
@property(...)
myProp = 0;
2021-11-17 10:55:31-info: [Scene] Forward render pipeline initialized.
2021-11-17 10:55:31-log: [Scene] openEngine end
2021-11-17 10:55:31-log: [Scene] configureEngine end
2021-11-17 10:55:32-log: [Scene] Animation node(b8546bD4TtD9JZ00+spzWQl)doesn't exist

– yet, the screen stays black. What can I do?

Thank you very much!

I can ask engineering to have a look.

Is there any errors in creator console panel ? This warning you may resolve it first.

This is the code line that creates the warning:

    @property(Object)
    public retrievedMission: Object = 'null';

I do not quite understand how this is a problematic line, though? Should I change or remove something?

All the best,
Fabian

What specific type is retrievedMission?As you defined it, it’s just a string type, you need to change it. If you want to define a null type, you can define like this:
@property(Button)
button : Button = null!;

It is just a string. I changed it to

@property(Object)
public retrievedMission: string = '';

… but the error persists:

 [Scene] You are explicitly specifying `undefined` type to cc property "retrievedMission" of cc class "Game".

Thanks for your help!
—Fabian

You can define like this:
@property(CCString)
public retrievedMission: string = ‘’;

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.