Skip to content

investigate cache invalidation of preloaded scripts with CACHE_MODE_REPLACE_DEEP since 4.3 #560

@Qubus0

Description

@Qubus0

@ZackeryRSmith found out scripts from preloaded scenes can be modded when loading with the new CACHE_MODE_REPLACE_DEEP added to 4.3 in godotengine#88664

ResourceLoader.load("scene path here", "", ResourceLoader.CACHE_MODE_REPLACE_DEEP)

ref discord message

we'll have to check if we can

  • do this with every preloaded scene to refresh scripts (preload("...tscn") containing a script)
  • do this with directly preloaded scripts preload("...gd")
  • if not, if we can add a script to a scene as subresource and then load it to refresh the script too

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions