chore(unity): 固定Unity CLI Loop本地包并移除UnitySkills依赖
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,140 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4db180d6e51f04c5781b7952488e894b
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ecd19e180f01a401a8249da9919bc8f2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,315 @@
|
||||
/* ===========================================
|
||||
SetupWizardWindow Stylesheet
|
||||
=========================================== */
|
||||
|
||||
:root {
|
||||
--setup-color-success: #4caf50;
|
||||
--setup-color-warning: #ffd200;
|
||||
--setup-color-danger: #ef5350;
|
||||
--setup-color-muted: #999999;
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
Block: Main Container
|
||||
=========================================== */
|
||||
.setup-main-container {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
Block: Prerequisite
|
||||
=========================================== */
|
||||
.setup-prerequisite {
|
||||
border-width: 1px;
|
||||
border-radius: 3px;
|
||||
padding: 8px 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.setup-prerequisite--warning {
|
||||
background-color: #5c4a00;
|
||||
border-color: #7a6400;
|
||||
}
|
||||
|
||||
.setup-prerequisite--ok {
|
||||
background-color: #1b3a1b;
|
||||
border-color: #2e7d32;
|
||||
}
|
||||
|
||||
.setup-prerequisite--compact {
|
||||
justify-content: center;
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
.setup-prerequisite__title {
|
||||
-unity-font-style: bold;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.setup-prerequisite--compact .setup-prerequisite__title {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.setup-prerequisite--warning .setup-prerequisite__title {
|
||||
color: var(--setup-color-warning);
|
||||
}
|
||||
|
||||
.setup-prerequisite--ok .setup-prerequisite__title {
|
||||
color: var(--setup-color-success);
|
||||
}
|
||||
|
||||
.setup-prerequisite__message {
|
||||
white-space: normal;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
Block: Step
|
||||
=========================================== */
|
||||
.setup-step {
|
||||
background-color: var(--unity-colors-helpbox-background);
|
||||
border-color: var(--unity-colors-helpbox-border);
|
||||
border-width: 1px;
|
||||
border-radius: 3px;
|
||||
padding: 8px 12px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.setup-step__title {
|
||||
-unity-font-style: bold;
|
||||
font-size: 13px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.setup-step__content {
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
.setup-step__status-row {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.setup-step__status-label {
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
Block: Status Icon
|
||||
=========================================== */
|
||||
.setup-status-icon {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.setup-status-icon--pending {
|
||||
background-color: var(--setup-color-muted);
|
||||
}
|
||||
|
||||
.setup-status-icon--success {
|
||||
background-color: var(--setup-color-success);
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
Block: Target
|
||||
=========================================== */
|
||||
.setup-target-row {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.setup-target-row__label {
|
||||
width: 50px;
|
||||
flex-shrink: 0;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.setup-target-row__field {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.setup-target-list {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.setup-toggle-row {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.setup-toggle-row__toggle {
|
||||
width: 20px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.setup-toggle-row__label {
|
||||
flex-grow: 1;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.setup-target-item {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 2px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.setup-target-item__label {
|
||||
flex-grow: 1;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.setup-target-item__status {
|
||||
flex-shrink: 0;
|
||||
-unity-font-style: bold;
|
||||
}
|
||||
|
||||
.setup-target-item__status--installed {
|
||||
color: var(--setup-color-success);
|
||||
}
|
||||
|
||||
.setup-target-item__status--checking {
|
||||
color: var(--setup-color-muted);
|
||||
}
|
||||
|
||||
.setup-target-item__status--outdated {
|
||||
color: var(--setup-color-warning);
|
||||
}
|
||||
|
||||
.setup-target-item__status--missing {
|
||||
color: var(--setup-color-muted);
|
||||
}
|
||||
|
||||
.setup-target-item__status--different-layout {
|
||||
color: var(--setup-color-warning);
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
Block: Button
|
||||
=========================================== */
|
||||
.setup-button {
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.setup-button--small {
|
||||
height: 22px;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
font-size: 11px;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.setup-button--primary {
|
||||
background-color: #2e7d32;
|
||||
border-color: var(--setup-color-success);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.setup-button--primary:hover {
|
||||
background-color: #388e3c;
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
Element: Hint Label
|
||||
=========================================== */
|
||||
.setup-step__hint-label {
|
||||
font-size: 11px;
|
||||
color: var(--setup-color-muted);
|
||||
white-space: normal;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.setup-step__divider {
|
||||
border-top-width: 1px;
|
||||
border-top-color: rgba(255, 255, 255, 0.12);
|
||||
margin-top: 6px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
Block: Footer
|
||||
=========================================== */
|
||||
.setup-footer__toggle {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.setup-footer__hint-label {
|
||||
font-size: 11px;
|
||||
color: var(--setup-color-muted);
|
||||
white-space: normal;
|
||||
margin-top: 2px;
|
||||
margin-left: 18px;
|
||||
}
|
||||
|
||||
.setup-footer__button-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.setup-footer__button-row .setup-button {
|
||||
flex-grow: 1;
|
||||
flex-basis: 0;
|
||||
}
|
||||
|
||||
.setup-footer__github-link {
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
border-top-width: 1px;
|
||||
border-top-color: rgba(255, 255, 255, 0.12);
|
||||
padding-top: 8px;
|
||||
margin-top: 10px;
|
||||
opacity: 0.78;
|
||||
}
|
||||
|
||||
.setup-footer__github-link-label {
|
||||
font-size: 11px;
|
||||
color: #c3cad3;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.setup-footer__github-link-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
opacity: 0.78;
|
||||
-unity-background-scale-mode: scale-to-fit;
|
||||
}
|
||||
|
||||
.setup-footer__github-link--hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.setup-footer__github-link-label--hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.setup-footer__github-link-icon--hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.setup-step__button-row {
|
||||
flex-direction: row;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.setup-step__button-row .setup-button {
|
||||
flex-grow: 1;
|
||||
flex-basis: 0;
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
Utility: Hidden
|
||||
=========================================== */
|
||||
.setup-hidden {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4b1f46c357b5f47da8d2b87979a0664e
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
|
||||
disableValidation: 0
|
||||
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements">
|
||||
<ui:ScrollView class="setup-main-container">
|
||||
<!-- Prerequisite: Node.js check -->
|
||||
<ui:VisualElement name="nodejs-warning" class="setup-prerequisite setup-prerequisite--warning">
|
||||
<ui:Label text="⚠ Node.js is required" class="setup-prerequisite__title" />
|
||||
<ui:Label text="Please install Node.js to continue." class="setup-prerequisite__message" />
|
||||
<ui:Button name="refresh-button" text="Refresh" class="setup-button setup-button--small" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="nodejs-ok" class="setup-prerequisite setup-prerequisite--ok setup-prerequisite--compact setup-hidden">
|
||||
<ui:Label text="✓ Node.js detected" class="setup-prerequisite__title" />
|
||||
</ui:VisualElement>
|
||||
|
||||
<ui:VisualElement name="project-cli-version-row" class="setup-toggle-row">
|
||||
<ui:Toggle name="project-cli-version-toggle" class="setup-toggle-row__toggle" />
|
||||
<ui:Label
|
||||
name="project-cli-version-label"
|
||||
text="Use project CLI version"
|
||||
tooltip="Run installed skills through the Unity package version of uloop-cli."
|
||||
class="setup-toggle-row__label" />
|
||||
</ui:VisualElement>
|
||||
|
||||
<!-- Global CLI -->
|
||||
<ui:VisualElement name="step-1" class="setup-step">
|
||||
<ui:Label text="Global CLI" class="setup-step__title" />
|
||||
<ui:VisualElement class="setup-step__content">
|
||||
<ui:VisualElement class="setup-step__status-row">
|
||||
<ui:VisualElement name="cli-status-icon" class="setup-status-icon" />
|
||||
<ui:Label name="cli-status-label" text="Checking..." class="setup-step__status-label" />
|
||||
</ui:VisualElement>
|
||||
<ui:Button name="install-cli-button" text="Install CLI" class="setup-button" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
|
||||
<!-- Skills -->
|
||||
<ui:VisualElement name="step-2" class="setup-step">
|
||||
<ui:Label text="Skills" class="setup-step__title" />
|
||||
<ui:VisualElement class="setup-step__content">
|
||||
<ui:VisualElement name="group-skills-row" class="setup-toggle-row">
|
||||
<ui:Toggle name="group-skills-toggle" class="setup-toggle-row__toggle" />
|
||||
<ui:Label
|
||||
name="group-skills-label"
|
||||
text="Group in subfolder"
|
||||
class="setup-toggle-row__label" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="skills-target-row" class="setup-target-row">
|
||||
<ui:Label text="Target:" class="setup-target-row__label" />
|
||||
<uie:EnumField name="skills-target-field" class="setup-target-row__field" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="skills-target-list" class="setup-target-list" />
|
||||
<ui:VisualElement name="skills-status-divider" class="setup-step__divider" />
|
||||
<ui:Label name="skills-status-label" text="" class="setup-step__status-label" />
|
||||
<ui:VisualElement class="setup-step__button-row">
|
||||
<ui:Button name="install-skills-button" text="Install Skills" class="setup-button" />
|
||||
</ui:VisualElement>
|
||||
<ui:Label name="skills-hint-label" text="Install skills later from Window > Unity CLI Loop > Settings." class="setup-step__hint-label" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
|
||||
<!-- Footer -->
|
||||
<ui:VisualElement class="setup-footer">
|
||||
<ui:VisualElement class="setup-footer__button-row">
|
||||
<ui:Button name="open-settings-button" text="Open Settings" class="setup-button setup-button--primary" />
|
||||
<ui:Button name="close-button" text="Close" class="setup-button" />
|
||||
</ui:VisualElement>
|
||||
<ui:Toggle
|
||||
name="suppress-auto-show-toggle"
|
||||
text="Don't show this after updates"
|
||||
class="setup-footer__toggle" />
|
||||
<ui:Label
|
||||
text="Reopen this from Window > Unity CLI Loop > Setup Wizard."
|
||||
class="setup-footer__hint-label" />
|
||||
<ui:VisualElement name="github-link-row" class="setup-footer__github-link">
|
||||
<ui:Label name="github-link-label" text="Star on GitHub" class="setup-footer__github-link-label" />
|
||||
<ui:Image name="github-link-icon" class="setup-footer__github-link-icon" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:ScrollView>
|
||||
</ui:UXML>
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 64588000e656f4a05be63d044cd1ad74
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
Reference in New Issue
Block a user