4 namespace droid.Runtime.Prototyping.Configurables {
5 [AddComponentMenu(ConfigurableComponentMenuPath._ComponentMenuPath
6 +
"QuaternionTransform" 7 + ConfigurableComponentMenuPath._Postfix)]
10 [Header(
"Specific", order = 102)]
14 [SerializeField] Quaternion _rotation;
16 [SerializeField]
string _pos_x =
"pos_x";
17 [SerializeField]
string _pos_y =
"pos_y";
18 [SerializeField]
string _pos_z =
"pos_z";
20 [SerializeField]
string _rot_w =
"row_w";
21 [SerializeField]
string _rot_x =
"rot_x";
22 [SerializeField]
string _rot_y =
"rot_y";
23 [SerializeField]
string _rot_z =
"rot_z";
28 public override string PrototypingTypeName {
get {
return "QuaternionTransformConfigurable"; } }
32 public Quaternion Rotation {
get {
return this._rotation; } }
36 public Vector3 Position {
get {
return this._position; } }
42 this._pos_x = this.Identifier +
"pos_x";
43 this._pos_y = this.Identifier +
"pos_y";
44 this._pos_z = this.Identifier +
"pos_z";
46 this._rot_x = this.Identifier +
"rot_x";
47 this._rot_y = this.Identifier +
"rot_y";
48 this._rot_z = this.Identifier +
"rot_z";
49 this._rot_w = this.Identifier +
"row_w";
53 var transform1 = this.transform;
54 transform1.position = this._position;
55 transform1.rotation = this._rotation;
58 public override ISpace ConfigurableValueSpace {
get; }