ramokz / phantom-camera

👻🎥 Control the movement and dynamically tween 2D & 3D cameras. Built for Godot 4. Inspired by Cinemachine.
https://phantom-camera.dev/
MIT License
1.97k stars 65 forks source link

Switch from _get_property_list() to _validate_property() system #169

Closed ramokz closed 5 months ago

ramokz commented 6 months ago

Project Type

Editor

Feature Description

Currently, there is no way to add property comments to the addon's properties that are available in the inspector, due to a limitation with the _get_property_list() approach to dynamically hiding and showing them.

The idea here is to use the _validate_property() system introduced in Godot 4.2, which allows for adding properties using the more standard @export system. This will unblock #55 #168 and, potentially, solve #164.

This will break compatibility with Godot versions lower than 4.2, so should not be done until at least Godot 4.3, but ideally later, is released.

Use Cases

No use cases implications here, just under the hood things and allows for the above-mentioned issues to be resolved.

Importance

High - there are critical things I can't do without this feature

Usage

All the time - the feature can be very useful for a varity of different projects

(Optional) Proposed Solution

No response