Game Object Rotation on Euler Angles

Im a game artist currently learning C#, Unity and im using Badumna Cloud. Everything is going swimmingly and I’m learning a great deal. However I can’t for the life of me figure out how to show other players my rotation on any axis other than the y axis.

Is there anybody around here that can show me how its done?

note: its for spaceship control so rotation on the y axis only looks silly.

Replicable Player Orientation Code

 public float Orientation
    {
        get
        {
            
			return this.gameObject.transform.rotation.eulerAngles.y;
			
        }

        set
        {
			
            this.gameObject.transform.rotation = Quaternion.AngleAxis(value, UnityEngine.Vector3.up);
			
	
        }
		
    }

public Transform mytransform; void Start(){ mytransform = transform } void Update(){ mytransform.Rotate(0,0,0); }

to rotate around x y or z change the number inside the area to fit.(tip use * time.deltatime with it)

return this.gameObject.transform.rotation.eulerAngles.y;

you are only returning the y axis value here

pretty sure you don’t need to use this either

you can set the rotation using

Quaternion.Euler(Vector3);

so try

public float Orientation
    {
        get
        {
        return gameObject.transform.rotation.eulerAngles; // As Vector3
        }
 
        set
        {
        gameObject.transform.rotation = Quaternion.Euler(value); //As Vector3
        }
 
    }