In which file is the binding between component and script written?

My question is, I want to change a script file, but there is a lock on it that won’t let me change it, is there any way? This script has many properties, and I don’t want to set them all up again.
Is there a file that says the relationship between this component and the script, and I can just change the path name?

3 Likes

I want to change a script file. For example, the previous script file is in a/lobbyScene.js and I want to change it to b/lobbyScene.js. Is there any good way?

If you are not allowed to change, just click on the gear at the back, delete it and add it again.

Copy the contents of b/lobby.ts to a/lobby.ts.
Then drag the meta and ts files in VSCode.

There are so many properties on this page. If I want to add more, I have to find them one by one. It’s so troublesome.

That meta file? Brother

In this case, a/lobby.ts will be changed, affecting other scenes.

Quickly replace the copied script to the prefab in cocoscreator_cocos creator uuid replacement-CSDN blog I saw this file saying that the prefab can modify the compressed uuid implementation, but I saw that the fire file did not use the script corresponding uuid and compressed uuid

The first step is to change components

The figure shows the components on the node

Corresponding to the component list of the prefab file, __id__ 24 is the bound UITip component

Corresponding UITip component data

The second step is to bind the properties of the component__id___

UITip’s lbContent binding is shown in the figure

lbcontent bound in prefab or scene__id___

Corresponding __id___ label

After knowing the principle, you can write your own tool to modify the binding script and modify the corresponding script attributes __id___

By the way, you have been using creator for 5 years, this shouldn’t be the case.

Doesn’t this mean that five years is useless?

Discovered Boss I’m a rookie