How to instantiate on custom rotation?


I want to instantiate an object with the rotation setting to (270,0,0)

What should I do?

I tried this but it doesn’t work

var rot = Quaternion(270,0,0);
var healthKit = Instantiate(health, transform.position, rot);

Rotation quaternions are not the same as euler angles.

Read this first, and then try

var rot = Quaternion.Euler ( 270, 0, 0 );