Rotate plane in world space

Hi, im trying to rotate a plane around an axis. I have positioned the plane 5 out to the right and set the rotation to 15 degrees on the y axis. In my understanding that should rotated the plane on a radius of 5 around the world 0,0,0 position. Instead it effects the local rotation.

GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane);
plane.transform.position =  new Vector3(5, 0, 0);                      // place the plane 5 out to the right
plane.transform.localRotation = Quaternion.Euler(90, 180, 0);    // rotate the local space so its upright
		
plane.transform.rotation = Quaternion.Euler(0, 15, 0); //why doesn't this rotate around the world 0,0,0 coordinate.

How can i rotate the plane around an off center axis.

transform.rotation = new Quaternion(transform.rotation.x,
                 transform.rotation.y, transform.rotation.z, transform.rotation.w);

change any desired direction with the number you want
so if you want to rotate about y axis by 15 degree , just replace transform.rotation.y with 15

that was a C# snippet

hope that answer your question

You can use many methods to do that.
You can directly modify the rotation as amirghayes said, or you can use the Rotate() function…