라이브러리 정리

This commit is contained in:
logonkhi
2025-12-08 21:06:05 +09:00
parent bfee6d8745
commit cf31cc0159
330 changed files with 68800 additions and 42167 deletions

View File

@@ -0,0 +1,41 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UVC.UI.Modal.ColorPicker;
using UVC.UI.Modal.DatePicker;
public class ColorPickerDatePickerSample : MonoBehaviour
{
private Renderer r;
void Start()
{
r = GetComponent<Renderer>();
r.sharedMaterial = r.material;
}
public void ChooseColorButtonClick()
{
_ = ColorPicker.Create(r.material.color, "Choose the cube's color!", SetColor, ColorFinished, OnCloseColorPicker, true);
}
private void SetColor(Color currentColor)
{
r.material.color = currentColor;
}
private void ColorFinished(Color finishedColor)
{
Debug.Log("You chose the color " + ColorUtility.ToHtmlStringRGBA(finishedColor));
}
private void OnCloseColorPicker()
{
}
public void ShowCalendar()
{
DatePicker.Show(System.DateTime.Now, (selectedDate) =>
{
Debug.Log("Selected date: " + selectedDate.ToString("yyyy-MM-dd"));
});
}
}