This is debug log.
TypeError: Cannot set property onBeforeBindObservable of [object Object] which has only a getter
at Function../Misc/deepCopier.ts.DeepCopier.DeepCopy (/Users/hwang/dev/workspace/gione-dapp/node_modules/babylonjs/babylon.js:104685:1)
at new Mesh (/Users/hwang/dev/workspace/gione-dapp/node_modules/babylonjs/babylon.js:93601:1)
at GroundMesh../Meshes/mesh.ts.Mesh.clone (/Users/hwang/dev/workspace/gione-dapp/node_modules/babylonjs/babylon.js:95246:1)
at MoneyViewer.setEnableMeshes (/Users/hwang/dev/workspace/gione-dapp/components/game/controllers/ui/MoneyViewer.ts:118:1)
at MoneyViewer.onViewer (/Users/hwang/dev/workspace/gione-dapp/components/game/controllers/ui/MoneyViewer.ts:111:1)
at newUI (/Users/hwang/dev/workspace/gione-dapp/components/game/scenes/mainLobby/MainLobbyUI.ts:165:1)
at Function.push../components/game/scenes/mainLobby/MainLobbyUI.ts.MainUI.onMainUI (/Users/hwang/dev/workspace/gione-dapp/components/game/scenes/mainLobby/MainLobbyUI.ts:26:1)
at LoadingPopuper.ui [as afterEvent] (/Users/hwang/dev/workspace/gione-dapp/components/game/scenes/mainLobby/MainLobbyScene.ts:96:1)
at LoadingPopuper.hideLoadingUI (/Users/hwang/dev/workspace/gione-dapp/components/game/controllers/LoadingPopuper.ts:85:1)
at LoadingPopuper.callHideLoadingUI (/Users/hwang/dev/workspace/gione-dapp/components/game/controllers/LoadingPopuper.ts:73:1)
at LoadingPopuper.loadingTimeChecker (/Users/hwang/dev/workspace/gione-dapp/components/game/controllers/LoadingPopuper.ts:56:1)
at /Users/hwang/dev/workspace/gione-dapp/components/game/controllers/LoadingPopuper.ts:37:1
at Engine../Engines/engine.ts.Engine._renderLoop (/Users/hwang/dev/workspace/gione-dapp/node_modules/babylonjs/babylon.js:32396:1)
I’m tried two case to create mesh.
- Mesh.CreateGround( ).
- MeshBuilder.CreateGround( ).
And used ‘.clone( )’ for cloning.
Mesh was cloned but, continued shown error log at debugging.
Why mentioned ‘onBeforeBindObservable’?
And how clear this error?
To every guru. please.