[SOLVED] Question about editing extensions

Hello! I am new to Defold, and following this tutorial: Using Defold Extensions and Using a Custom Camera - DevGa.me

I am at the part where I am editing the camera extension script, at the bottom of the tutorial page. The problem is, I cannot save my changes.

I saw an old topic saying that some extension files are not supposed to be edited: [solved] Can's save a script every now and then

The extension developer said in that thread that the solution to create a new script, but I know that the thread I linked is very old (7 years), and I was just wondering if there is a different way to handle this? I know the rendercam is also deprecated, so I also downloaded Rendy, with the same issue. Is there a tutorial that goes over how to best approach this? Apologies if there’s something obvious I missed…I am still making my way through this tutorial and the official ones, so I might not have come across it yet.

Thanks!

Yes, you can overwrite properties of that script and save it. I’m afraid you did something wrong while following the tutorial.

1 Like

You can edit and save the properties of the script in the Outline pane after adding to a game object, but you can’t edit the code of the script file itself.

1 Like

Extensuon files cannot be edited, instead, copy the extension folder and paste it as a folder in ur project then delete the original extension. That’s what I do when I want to edit extension code.

1 Like

The tutorial doesn’t tell you to edit the camera.script source. It tells you to add rendercam/camera.go to your collection and then to expand camera.go in the Outline panel and select the camera.script component

image

Once it is selected you should modify the settings of the script in the Properties Panel:

image

2 Likes

Got it working! I messed up by trying to edit outside of the Outline pane in the main.collection…I had been clicking on the script and drilling down to the script’s outline view and changing that, but when I just changed the attributes at the main.collection level, it saved properly. Thanks, everyone!

1 Like

Yep, I should have looked more carefully! I knew I must have been overlooking something :laughing:

1 Like