Ejemplo n.º 1
0
    protected override void DrawPropertyLayout(IPropertyValueEntry <PositionTarget> entry, GUIContent label)
    {
        EditorGUI.BeginChangeCheck();
        var Position = SirenixEditorFields.Vector3Field("Position", entry.SmartValue.Position);
        var Rotation = SirenixEditorFields.QuaternionField("Rotation", entry.SmartValue.Rotation);

        if (EditorGUI.EndChangeCheck())
        {
            entry.SmartValue = new PositionTarget()
            {
                Position = Position,
                Rotation = Rotation
            };
        }
    }