engine icon indicating copy to clipboard operation
engine copied to clipboard

Checking engine properties to decide which editor UI fields to be disabled on mismatched releases.

Open kpal81xd opened this issue 2 years ago • 2 comments

Overview

This issue originates from releasing an editor update which exposes new properties which are not present in the current engine release so therefore must be hidden. Originally the properties are just manually hidden by checking if they exist but this issue aims to abstract this process and form an API to make this process more automated.

Proposal

The idea is to have an API on the engine which allows the editor UI fields to test the mutating property exists automatically to decide whether it should be displayed or not.

kpal81xd avatar Dec 20 '23 15:12 kpal81xd

it could be a simple manually maintained class of private static properties for Editor to test against:

class EngineFeatures {
    static dithering = true;
}

and the Editor would then:

if (pc.EngineFeatures.dithering) ...

mvaligursky avatar Dec 20 '23 16:12 mvaligursky

Actually, I think storing a version number instead of a boolean would be even better.

class EngineFeatures {
    static dithering = 1;        // if we update dithering in a way editor needs to know, we can increment this.
}

mvaligursky avatar Dec 22 '23 09:12 mvaligursky