GameObject myObject = new GameObject("MyObject");
myObject.AddComponent();
Material myMaterial = new Material(Shader.Find("Standard")); myMaterial.color = Color.red;The `Material` class is part of the UnityEngine package and allows you to create and apply materials to game objects. In this example, a new material is created using the `Standard` shader and its color is set to red. Overall, these examples demonstrate some of the basic functionality provided by the UnityEngine package. The package is essential for game development in Unity and provides a wide range of tools and features to create immersive games.