Commit a3b1d60a authored by yzy's avatar yzy

Merge branch 'master' of git@gitlab.sd-zeus.com:yangzeyu/SCVerificationPipelineDT.git

parents 34cf705d 72070423
#if !UNITY_EDITOR
using UnityEngine;
using UnityEngine.Rendering;
[UnityEngine.Scripting.Preserve]
public class SkipUnityLogo
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
private static void BeforeSplashScreen()
{
#if UNITY_WEBGL
Application.focusChanged += Application_focusChanged;
#else
System.Threading.Tasks.Task.Run(AsyncSkip);
#endif
}
#if UNITY_WEBGL
private static void Application_focusChanged(bool obj)
{
Application.focusChanged -= Application_focusChanged;
SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
}
#else
private static void AsyncSkip()
{
SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
}
#endif
}
#endif
fileFormatVersion: 2
guid: 9f6e700a24f830d4186114e56cbb5315
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 26adfba005402b843812273b81611779
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 4e08180392ce7f241960cb8390683889
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/ZeusWebGL.iml" filepath="$PROJECT_DIR$/.idea/ZeusWebGL.iml" />
</modules>
</component>
</project>
\ No newline at end of file
fileFormatVersion: 2
guid: a9c88ff5d7cc06843bd858035a6b52ea
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 4c46dcf8c5e96ba4bb12a2522bb2e002
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 4b428820c889cff4d898dc365c446814
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
// 每隔30分钟(1800000毫秒)刷新一次页面
setTimeout(function(){
location.reload();
}, 60000);
fileFormatVersion: 2
guid: 14ae36580f0e23448b4084d0bece7945
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 1a1bc842202f08a4da06d61e8ed0703d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 15b1cbe24e8358047aa8d12dc2779751
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 6f0273a737f1b7a46be97eae848c3d84
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: b9bbeaceb4bf58349a7a5ca81f29cc50
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 6257061e7091a4f458fe1391d5c9664f
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 7165d550ab3d3b541a956cdd7878f25c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 994c023cfaf879240a283095a89fcb7d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('bg.jpg') no-repeat center center;
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.progress {
width: 900px;
position: absolute;
bottom: 10%;
}
.progress-title {
text-align: center;
margin-bottom: 40px;
}
.progress-title .logo {
width: 410px;
height: 120px;
background: url('logo.png') no-repeat center center;
background-size: contain;
margin: 0 auto 20px;
}
.title .text {
color: #ffffff;
font-size: 43px;
font-weight: bold;
letter-spacing: 5px;
text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.7);
}
.progress_bar {
width: 80%;
height: 20px;
margin: 0 auto;
position: relative;
background: rgba(0, 0, 0, 0.5);
border-radius: 10px;
overflow: hidden;
}
.progress-full {
position: absolute;
height: 100%;
width: 0%;
background: linear-gradient(90deg, #4CAF50, #8BC34A);
transition: width 0.3s ease;
border-radius: 10px;
}
.progress-dark {
position: absolute;
width: 100%;
height: 100%;
background: url('loading_bar_bg.png') no-repeat;
background-size: cover;
opacity: 0.3;
}
.content {
text-align: center;
margin-top: 20px;
}
.text-wrapper.tips {
color: #ffffff;
font-size: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
fileFormatVersion: 2
guid: 986b0d6d533e4e64bb6a7824614b9fa2
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 005fe6d5f8227b8439a5389bb7abebbf
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: d3ebb433eba281f4997b108884d0888d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 76b6bbaf2deb260439cb70a1dedfe90c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>山西检定数字孪生系统 | 科曼智能科技有限公司</title>
<link rel="shortcut icon" href="TemplateData/favicon.ico">
<link rel="stylesheet" href="TemplateData/style.css">
<style>
body, html {
margin: 0;
padding: 0;
overflow: hidden;
width: 100%;
height: 100%;
background: radial-gradient(circle at center, #1a2b4d 0%, #0a1428 100%);
}
#unity-container, #unity-canvas {
width: 100% !important;
height: 100% !important;
margin: 0 auto;
}
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(26, 43, 77, 0.97) 0%, rgba(10, 20, 40, 0.97) 100%);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
position: relative;
overflow: hidden;
}
#loading-screen::before {
content: '';
position: absolute;
width: 200%;
height: 200%;
background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDBNIDAgMjAgTCA0MCAyMCBNIDIwIDAgTCAyMCA0MCBNIDAgMzAgTCA0MCAzMCBNIDMwIDAgTCAzMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDY1LCAxMzUsIDI1NSwgMC4xKSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIi8+PC9zdmc+');
opacity: 0.5;
animation: move 20s linear infinite;
pointer-events: none;
}
@keyframes move {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.progress.Dark {
width: 80%;
max-width: 600px;
padding: 20px;
border-radius: 10px;
background: rgba(20, 35, 60, 0.8);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
border: 1px solid rgba(65, 135, 255, 0.2);
}
.progress_bar {
position: relative;
height: 6px;
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
overflow: hidden;
margin-bottom: 15px;
}
.progress-full {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: linear-gradient(90deg, #4a90e2, #67b8e3);
transition: width 0.3s ease;
border-radius: 3px;
}
.text-wrapper.tips {
text-align: center;
color: #ffffff;
font-size: 16px;
font-family: 'Microsoft YaHei', sans-serif;
opacity: 0.8;
}
.text-wrapper.tips .text {
display: inline-block;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
</style>
</head>
<body>
<div id="loading-screen">
<div class="progress Dark">
<div class="progress-footer">
<div class="progress_bar">
<div id="progress-bar-full" class="progress-full"></div>
<div class="progress-dark"></div>
<div class="progress_num" style="display: none">0%</div>
</div>
<div class="content">
<div class="text-wrapper tips">
<span id="progress-bar-num" class="text">正在加载,请稍候…</span>
</div>
</div>
</div>
</div>
</div>
<div id="unity-container" class="unity-desktop">
<canvas id="unity-canvas" width={{{ WIDTH }}} height={{{ HEIGHT }}}></canvas>
<div id="unity-warning"> </div>
<div id="unity-footer">
<div id="unity-webgl-logo"></div>
<div id="unity-fullscreen-button"></div>
<div id="unity-build-title">山西检定数字孪生系统</div>
</div>
</div>
<script src="{{{ UNITY_LOADER_URL }}}"></script>
<script src="./TemplateData/flush.js"></script>
<script>
var container = document.querySelector("#unity-container");
var canvas = document.querySelector("#unity-canvas");
var fullscreenButton = document.querySelector("#unity-fullscreen-button");
var warningBanner = document.querySelector("#unity-warning");
let loadingBarView = document.querySelector("#loading-screen");
let progressBarFullView = document.querySelector("#progress-bar-full");
let progressBarNumView = document.querySelector("#progress-bar-num");
// Shows a temporary message banner/ribbon for a few seconds, or
// a permanent error message on top of the canvas if type=='error'.
// If type=='warning', a yellow highlight color is used.
// Modify or remove this function to customize the visually presented
// way that non-critical warnings and error messages are presented to the
// user.
function unityShowBanner(msg, type) {
function updateBannerVisibility() {
warningBanner.style.display = warningBanner.children.length ? 'block' : 'none';
}
var div = document.createElement('div');
div.innerHTML = msg;
warningBanner.appendChild(div);
if (type == 'error') div.style = 'background: red; padding: 10px;';
else {
if (type == 'warning') div.style = 'background: yellow; padding: 10px;';
setTimeout(function() {
warningBanner.removeChild(div);
}, 5000);
}
}
var buildUrl = "Build";
var loaderUrl = buildUrl + "/{{{ LOADER_FILENAME }}}";
var config = {
dataUrl: buildUrl + "/{{{ DATA_FILENAME }}}",
frameworkUrl: buildUrl + "/{{{ FRAMEWORK_FILENAME }}}",
#if USE_WASM
codeUrl: buildUrl + "/{{{ CODE_FILENAME }}}",
#endif
#if MEMORY_FILENAME
memoryUrl: buildUrl + "/{{{ MEMORY_FILENAME }}}",
#endif
#if SYMBOLS_FILENAME
symbolsUrl: buildUrl + "/{{{ SYMBOLS_FILENAME }}}",
#endif
streamingAssetsUrl: "StreamingAssets",
companyName: {{{ JSON.stringify(COMPANY_NAME) }}},
productName: {{{ JSON.stringify(PRODUCT_NAME) }}},
productVersion: {{{ JSON.stringify(PRODUCT_VERSION) }}},
showBanner: unityShowBanner,
};
// By default Unity keeps WebGL canvas render target size matched with
// the DOM size of the canvas element (scaled by window.devicePixelRatio)
// Set this to false if you want to decouple this synchronization from
// happening inside the engine, and you would instead like to size up
// the canvas DOM size and WebGL render target sizes yourself.
// config.matchWebGLToCanvasSize = false;
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
// Mobile device style: fill the whole browser client area with the game canvas:
var meta = document.createElement('meta');
meta.name = 'viewport';
meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
document.getElementsByTagName('head')[0].appendChild(meta);
container.className = "unity-mobile";
canvas.className = "unity-mobile";
// To lower canvas resolution on mobile devices to gain some
// performance, uncomment the following line:
// config.devicePixelRatio = 1;
unityShowBanner('WebGL builds are not supported on mobile devices.');
} else {
// Desktop style: Render the game canvas in a window that can be maximized to fullscreen:
canvas.style.width = "{{{ WIDTH }}}px";
canvas.style.height = "{{{ HEIGHT }}}px";
}
#if BACKGROUND_FILENAME
canvas.style.background = "url('" + buildUrl + "/{{{ BACKGROUND_FILENAME.replace(/'/g, '%27') }}}') center / cover";
#endif
var script = document.createElement("script");
script.src = loaderUrl;
script.onload = () => {
createUnityInstance(canvas, config, (progress) => {
let progressNum = parseInt((100 * progress).toString()) +"%";
progressBarFullView.style.width = progressNum;
progressBarNumView.innerHTML = "正在加载(" + progressNum + "),请稍候…";
}).then((unityInstance) => {
loadingBarView.style.display = "none";
loadingBarView.style.display = "none";
fullscreenButton.onclick = () => {
unityInstance.SetFullscreen(1);
};
}).catch((message) => {
alert(message);
});
};
document.body.appendChild(script);
</script>
</body>
</html>
fileFormatVersion: 2
guid: 92d8a034e6f917544afa9ad73ae792e1
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: cb6650dd23d0e264c859bb389dc1715e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.27861485, g: 0.30078807, b: 0.36295882, a: 1}
m_IndirectSpecularColor: {r: 0.28317237, g: 0.3055275, b: 0.3646918, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
......@@ -103186,22 +103186,22 @@ PrefabInstance:
- target: {fileID: 1808383340561177724, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalRotation.w
value: -0.7595737
value: -0.6963643
objectReference: {fileID: 0}
- target: {fileID: 1808383340561177724, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.13393332
value: -0.12278779
objectReference: {fileID: 0}
- target: {fileID: 1808383340561177724, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.6268127
value: -0.6963643
objectReference: {fileID: 0}
- target: {fileID: 1808383340561177724, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalRotation.z
value: 0.110523984
value: 0.12278779
objectReference: {fileID: 0}
- target: {fileID: 1808383340561177724, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
......@@ -103211,7 +103211,7 @@ PrefabInstance:
- target: {fileID: 1808383340561177724, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -280.94
value: -270
objectReference: {fileID: 0}
- target: {fileID: 2607406461306109499, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
......@@ -103221,7 +103221,7 @@ PrefabInstance:
- target: {fileID: 3808107295801017191, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalPosition.x
value: -51.08637
value: -52.131004
objectReference: {fileID: 0}
- target: {fileID: 3808107295801017191, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
......@@ -103231,27 +103231,27 @@ PrefabInstance:
- target: {fileID: 3808107295801017191, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalPosition.z
value: -14.408779
value: -3.4999924
objectReference: {fileID: 0}
- target: {fileID: 3808107295801017191, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalRotation.w
value: -0.7595737
value: -0.6963643
objectReference: {fileID: 0}
- target: {fileID: 3808107295801017191, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.13393332
value: -0.12278779
objectReference: {fileID: 0}
- target: {fileID: 3808107295801017191, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.6268127
value: -0.6963643
objectReference: {fileID: 0}
- target: {fileID: 3808107295801017191, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
propertyPath: m_LocalRotation.z
value: 0.110523984
value: 0.12278779
objectReference: {fileID: 0}
- target: {fileID: 4011120318709446473, guid: e525963e80d07df418ccdd194c29ff2a,
type: 3}
......@@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.28317237, g: 0.3055275, b: 0.3646918, a: 1}
m_IndirectSpecularColor: {r: 0.2786128, g: 0.30078742, b: 0.3628655, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
......@@ -5,7 +5,7 @@ EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes:
- enabled: 1
- enabled: 0
path: Assets/_Scenes/1_Main.unity
guid: a1193329f89803b4f8a14f6c0b15d2c1
- enabled: 0
......@@ -14,7 +14,7 @@ EditorBuildSettings:
- enabled: 0
path: Assets/_Scenes/3_Main.unity
guid: 20c0c67e1155d7340be70873c2eb30f1
- enabled: 0
- enabled: 1
path: Assets/_Scenes/4_Main.unity
guid: da74b35adf3770040b51552fc0cb9a98
- enabled: 0
......
......@@ -400,6 +400,7 @@ PlayerSettings:
openGLRequireES32: 0
m_TemplateCustomTags:
PRODUCT_DESCRIPTION:
UNITY_LOADER_URL:
mobileMTRendering:
Android: 1
iPhone: 1
......@@ -652,7 +653,7 @@ PlayerSettings:
webGLDebugSymbols: 0
webGLEmscriptenArgs:
webGLModulesDirectory:
webGLTemplate: APPLICATION:Default
webGLTemplate: PROJECT:ZeusWebGL
webGLAnalyzeBuildSize: 0
webGLUseEmbeddedResources: 0
webGLCompressionFormat: 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment