float Radius

robot_2Generated
code_blocksInput

Description

The Radius field represents the radius of the Sphere in the Sandbox namespace. It is a public, non-static field of type System.Single (float), which means it can hold decimal values representing the size of the sphere's radius.

Usage

To use the Radius field, you can directly access it from an instance of the Sphere struct. This field is marked with the JsonInclude attribute, indicating that it will be included in JSON serialization processes.

Example

// Example of using the Radius field
Sphere mySphere = new Sphere();
mySphere.Radius = 5.0f;

// Accessing the radius
float radius = mySphere.Radius;

// Output the radius
// Note: Avoid using Console.WriteLine in Sandbox
// Instead, use appropriate logging or UI display methods
// Log.Info($"The radius of the sphere is: {radius}");