Creates a Layer from provided data.
This function constructs a new Layer instance using the given data, setting properties like active state and default fade parameters.
The ZComponent instance.
The Animation instance to which the layer will belong.
The data object defining the Layer.
A new Layer instance if successful, or undefined if the layer cannot be created.
Creates a Layer from provided data.
This function constructs a new Layer instance using the given data, setting properties like active state and default fade parameters.