Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
顺
顺职VR迷宫游戏教学
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨泽宇
顺职VR迷宫游戏教学
Commits
8b164dae
Commit
8b164dae
authored
Mar 08, 2024
by
杨泽宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
18571cb2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
MsvcStdextWorkaround.cs
Assets/_Scripts/MsvcStdextWorkaround.cs
+23
-0
MsvcStdextWorkaround.cs.meta
Assets/_Scripts/MsvcStdextWorkaround.cs.meta
+11
-0
ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-1
No files found.
Assets/_Scripts/MsvcStdextWorkaround.cs
0 → 100644
View file @
8b164dae
#if UNITY_EDITOR
using
System
;
using
UnityEditor.Build
;
using
UnityEditor.Build.Reporting
;
public
class
MsvcStdextWorkaround
:
IPreprocessBuildWithReport
{
const
string
kWorkaroundFlag
=
"/D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS"
;
public
int
callbackOrder
=>
0
;
public
void
OnPreprocessBuild
(
BuildReport
report
)
{
var
clEnv
=
Environment
.
GetEnvironmentVariable
(
"_CL_"
);
if
(
string
.
IsNullOrEmpty
(
clEnv
))
{
Environment
.
SetEnvironmentVariable
(
"_CL_"
,
kWorkaroundFlag
);
}
else
if
(!
clEnv
.
Contains
(
kWorkaroundFlag
))
{
clEnv
+=
" "
+
kWorkaroundFlag
;
Environment
.
SetEnvironmentVariable
(
"_CL_"
,
clEnv
);
}
}
}
#
endif
// UNITY_EDITOR
\ No newline at end of file
Assets/_Scripts/MsvcStdextWorkaround.cs.meta
0 → 100644
View file @
8b164dae
fileFormatVersion: 2
guid: 3db5eb6ff0b60bb4aa9605ae53909324
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
ProjectSettings/ProjectSettings.asset
View file @
8b164dae
...
...
@@ -157,8 +157,8 @@ PlayerSettings:
-
{
fileID
:
0
}
-
{
fileID
:
0
}
-
{
fileID
:
0
}
-
{
fileID
:
7405867191050963036
,
guid
:
e60ad326389e9b14e9f7ae2c33703862
,
type
:
2
}
-
{
fileID
:
6859214065320108093
,
guid
:
fba6072275013e6448e381f83d131b7f
,
type
:
2
}
-
{
fileID
:
7405867191050963036
,
guid
:
e60ad326389e9b14e9f7ae2c33703862
,
type
:
2
}
metroInputSource
:
0
wsaTransparentSwapchain
:
0
m_HolographicPauseOnTrackingLoss
:
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment