添加了3DText

This commit is contained in:
2025-10-23 11:50:16 +08:00
parent 37ced86e30
commit 30d0d40a52
901 changed files with 11581439 additions and 112 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b273eeefab12b774ca0fffb36391a0db
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using YooAsset;
public class LoadingWindow : UIBaseWindow
{
public Slider slider;
public Text progressText;
private HandleBase _currentOperation;
void Update()
{
if (_currentOperation == null) return;
slider.value = _currentOperation.Progress;
Debug.Log(slider.value);
if (progressText != null)
progressText.text = $"{_currentOperation.Progress * 100:F0}%";
if (_currentOperation.IsDone)
StopTracking();
}
public void TrackOperation(HandleBase operation)
{
_currentOperation = operation;
gameObject.SetActive(true);
}
public void StopTracking()
{
_currentOperation = null;
gameObject.SetActive(false);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e49b2fed14fbfcd48804c019a87aee19
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: