In the video, i recorded how the bug happened. I created a real curve in A.ts script with the code copied from cocos page:
https://docs.cocos.com/creator/manual/en/scripting/decorator.html
import { _decorator, Component, Node, RealCurve } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('A')
export class A extends Component {
@property(RealCurve)
realCurve:RealCurve = new RealCurve();
start()
{
}
}
Upon clicking to other object, then back to the object containing Real Curve, the error in the editor show. Here is the log
error: [Window] Cannot read property 'map' of undefinedTypeError: Cannot read property 'map' of undefined
at changeDumpValueToCurveValue (C:\ProgramData\cocos\editors\Creator\3.8.0\resources\app.asar\builtin\scene\dist\contributions\ui-kit\ui-prop\types\real-curve.ccc:1:1112)
at Object.update (C:\ProgramData\cocos\editors\Creator\3.8.0\resources\app.asar\builtin\scene\dist\contributions\ui-kit\ui-prop\types\real-curve.ccc:1:901)
at Object.update (C:\ProgramData\cocos\editors\Creator\3.8.0\resources\app.asar\builtin\scene\dist\contributions\ui-kit\ui-prop\dump.ccc:1:4629)
at HTMLElement.initRender (C:\ProgramData\cocos\editors\Creator\3.8.0\resources\app.asar\node_modules\@editor\creator-ui-kit\dist\renderer.ccc:2:1525886)
at HTMLElement.render (C:\ProgramData\cocos\editors\Creator\3.8.0\resources\app.asar\node_modules\@editor\creator-ui-kit\dist\renderer.ccc:2:1525755)
at C:\ProgramData\cocos\editors\Creator\3.8.0\resources\resources\3d\engine\editor\inspector\utils\prop.js:277:15
at Array.forEach (<anonymous>)
at C:\ProgramData\cocos\editors\Creator\3.8.0\resources\resources\3d\engine\editor\inspector\utils\prop.js:205:29
at Object.<anonymous> (C:\ProgramData\cocos\editors\Creator\3.8.0\resources\resources\3d\engine\editor\inspector\components\base.js:14:5)
at HTMLElement.update (C:\ProgramData\cocos\editors\Creator\3.8.0\resources\app.asar\node_modules\@editor\creator-ui-kit\dist\renderer.ccc:2:1529781)