# 时间选择器模板DateTime Picker v1.0

- 原文：https://www.interestcreator.com/datetime-picker/
- 站点：https://www.interestcreator.com/
- 发布：2022-09-30
- 更新：2022-09-30
- 分类：Unity插件、Unity资产
- 标签：GUI、UI、Unity、Unity插件、Unity资产

## 概要

Unity 的日期时间选择器模板，用 Unity UI 对象搭出日、月、年与时分秒选择界面，C# 编写，日期格式可自行定制。原文未标注支持的 Unity 版本。

## 正文

![1664549177 d904349dfd25f95](https://www.interestcreator.com/wp-content/uploads/2022/09/1664549177-d904349dfd25f95.jpg)

本资源是[Unity](https://www.interestcreator.com/unityplugin/)的时间选择模板工具，可以很轻松的创建时间选择外观、功能；

使用Unity UI对象和工具建立日期时间选择器的脚本。

– 100%可定制和可编辑。
 – C#代码。
 – 根据你的需要，选择一个或多个日期。
 – 选择日期：日、月、年。
 – 选择时间：小时、分钟和秒。
 – 根据需要，可定制日期格式。
 – 预设输出格式的指南，以及如何从头开始建立一个自定义格式。

![1664549182 bb268b17e98f962](https://www.interestcreator.com/wp-content/uploads/2022/09/1664549182-bb268b17e98f962.jpg)
![1664549180 e7b306e36ec8b97](https://www.interestcreator.com/wp-content/uploads/2022/09/1664549180-e7b306e36ec8b97.jpg)
 ![1664549179 4fc5e4d641c9674](https://www.interestcreator.com/wp-content/uploads/2022/09/1664549179-4fc5e4d641c9674.jpg)

Script to build datetime picker using Unity UI objects and tools.

• 100% customizable and editable.
 • C # code.
 • Select one or more dates depending on your needs.
 • Select dates: day, month and year.
 • Select time: hour, minutes and seconds.
 • Customizable date formats as required.
 • Guide to pre-set output formats and how to build a custom format from scratch.

相关资源：[程序化地底世界环境关卡创建工具Dungeon Architect](https://www.interestcreator.com/dungeon-architect/) · [【Unity插件】动画编辑器UMotion Pro Animation Editor](https://www.interestcreator.com/umotion-pro-animation-editor/) · [冒险游戏创造系统Adventure Creator](https://www.interestcreator.com/adventure-creator/)

## 常见问题

### 支持哪些 Unity 版本？

原文未提供具体版本号，只说明它基于 Unity 的 UI 对象与工具实现。

### 是用什么语言写的？

C# 代码。功能列表里明确标注为 C# 代码实现。

### 能选到秒吗？

可以。时间部分支持小时、分钟和秒，日期部分支持日、月、年。

### 日期格式可以自己改吗？

可以。原文说格式能够按需定制，并附了预设输出格式的指南和从头搭建自定义格式的说明。

### 一次能选多个日期吗？

可以，按需要选择一个或多个日期。原文没有说明多选在界面上是以清单还是区间形式呈现。

### 需要额外装别的插件吗？

原文未提及额外依赖，只说它用 Unity UI 对象和脚本建立日期时间选择器。
