Jump to content

Editor Overriding Older Json Scripts (C++)


Go to solution Solved by Josh,

Recommended Posts

Posted

I'm noticing that the editor will take the liberty and clear json files on the stock components as they don't have their variables commented. The editor has made me have to redo a few scripts. I was under the impression that the editor would leave these alone if autogenerated was false or not defined. 

I'd like to be able to turn this off if possible. 

  • Upvote 1

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Posted

If the JSON file contains the value "autogenerated" and it is set to true, the editor will automatically update and overwrite these files whenever the code file changes. You can remove this value or set it to false, but the auto-generation of the component properties will no longer work.

5 hours ago, Dreikblack said:

Same, auto gen is just making extra files that i don't need and messes my files sometimes

The editor loads the properties the component uses from the JSON files.

Let's build cool stuff and have fun. :)

  • 2 weeks later...
Posted
On 7/5/2025 at 9:48 AM, reepblue said:

It will still generate a json file like so.

{
	"autogenerated": true,
	"component":
	{
		"inputs":
		{}
,
		"outputs":
		{}
,
		"properties":
		{}

	}
}

Was the JSON file missing when this was created? If the file does not already exist, then this is the correct behavior.

Let's build cool stuff and have fun. :)

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...