CesiumGS / CesiumGS/cesium-unity

Add ability to manually clear cache

Open
#713 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
535
Forks
132
Avg merge
6h 45m
Merged PRs (30d)
1

Description

### Feature

Currently there's no (easy) way to allow users to clear the cache in Editor or at runtime. However, it can be done from C++ code.

The closest thing we have in the UI is the[ `maxItems` property on `CesiumRuntimeSettings`](https://cesium.com/learn/cesium-unity/ref-doc/classCesiumForUnity_1_1CesiumRuntimeSettings.html#a5e8479d314bc290cf06312a7d932b4ca). However, it would be nice to provide some option on `CesiumRuntimeSettings` to allow a user to clear this cache, both in-Editor and at runtime (e.g., on application exit).

Related: https://github.com/CesiumGS/cesium-unreal/pull/1825

Contributor guide

Open the contributing guide

Research direction

Start with CesiumRuntimeSettings and inspect how the cache is currently controlled through maxItems in the Editor and at runtime. Review the existing C++ cache-clearing approach and the related cesium-unreal pull request for expected behavior. Done means users can explicitly clear the cache in the Editor and at runtime, including on application exit.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.