The SkyMaterial
property of the SkyBox2D
class represents the material used for rendering the 2D skybox. This property allows you to specify a custom material to be applied to the skybox, enabling various visual effects and customizations.
The SkyMaterial
property of the SkyBox2D
class represents the material used for rendering the 2D skybox. This property allows you to specify a custom material to be applied to the skybox, enabling various visual effects and customizations.
To use the SkyMaterial
property, you need to have an instance of the SkyBox2D
component. You can then set the SkyMaterial
property to a Material
object that defines the appearance of the skybox.
Example usage:
var skybox = new SkyBox2D();
var customMaterial = Material.Load("path/to/material");
skybox.SkyMaterial = customMaterial;
var skybox = new SkyBox2D(); var customMaterial = Material.Load("path/to/material"); skybox.SkyMaterial = customMaterial;