Closed CobeyH closed 1 year ago
We have architected a solution for this problem. This solution will consist of several components that work together to create light customization.
[x] 1. LightTypes Data Class: Create a serializable class that doesn't inherit from mono behaviour to hold the data about the light. This should have a dropdown option for the type of light and activation type. It should contain a list of properties that can be toggled on/off.
[x] 2. A light builder editor script: The light builder script will listen for changes from the data class and apply changes to the light based on the properties. This script will update the light's appearance, colliders, children, etc.
[ ] 3. Light Controller Base Class: This script will hold all the utilities and shared functions between the lights.
[ ] 4. Unique extension light types: Each of the light types will have its own script that extends the base class if needed.
Describe the solution you'd like Overhaul light prefab to create customizable light types. You should be able to add a set of properties to the lights in the editor that get added at runtime.
Types of Lights: (Exclusive)
Activation Type: (Exclusive)
Properties: