I have a prefab layer object (rectangle) which is rotated bei some degrees to have the right angle to be seen by my 2d camera.
Now i want to rotate the object by x degrees around the Vector3.up axis.
this.gameObject.transform.RotateAroundLocal(this.gameObject.transform.up,angle);
I also tried Vector3.up as the axis and RotateAround , none of that produces the expected result. It rotates some, but not the correct angle somehow.