public override ControlSchema GetSchema() { ControlSchema schema = new ControlSchema() { Name = _name, Position = transform.localPosition, Rotation = transform.localRotation, Type = GetControlType() }; buttonSchema.SetControlSchema(ref schema); return(schema); }