Deprecated: Required parameter $cat_id follows optional parameter $type in /www/wwwroot/ebimall.com/systems/hong.php on line 2088

Deprecated: Required parameter $where follows optional parameter $tree_id in /www/wwwroot/ebimall.com/systems/hlb.php on line 3505
Unity2018升级 + VS2019遇到的问题记录_蛰伏--当你不够..._CSDN博客188bio精品生物—专注于实验室精品爆款的电商平台 - 蚂蚁淘旗下精选188款生物医学科研用品
您好,欢迎您进入188进口试剂采购网网站! 服务热线:4000-520-616
蚂蚁淘商城 | 现货促销 | 科研狗 | 生物在线

Unity2018升级 + VS2019遇到的问题记录_蛰伏--当你不够..._CSDN博客

The reference assemblies for framework  .NETFramework,Version v4.7.1  were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

解决方法

1、Windows - Search - Visual Studio Installer - Modify - Individual Components and check the right version

2、I ve fixed it changing to .NET 3.5 in my project (File - Build Settings - Player Settings). I had .NET 4.x before.
\"\"

3、Rename the Visual Studio msbuild folder to something else, like:
C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild --- MSBuild.old
Warning:
This will most likely break the same feature in Visual Studio... but this is a fix for VS Code.
If someone has a better solution, I d be interested, but OmniSharp not working is a problem.

4、

Close VS Code.Download and install Microsoft .NET Framework 4.7.1 here: https://www.microsoft.com/en-us/download/details.aspx?id 56119Restart VS Code.

5、To fix the issue 
1. Download and install Microsoft s .NET Framework SDK any version with start 4.X from https://www.microsoft.com/net/download/visual-studio-sdks
2. In VS Code, open Assembly_CSharp.csproj file and change TargetFrameworkVersion to what you installed .NET Framework SDK version

6、

I downloaded the Developer pack for 4.7.1 from here: https://www.microsoft.com/en-us/download/confirmation.aspx?id 56119

The pack installed these programs on the target machine (my build server).

Microsoft .NET Framework 4.7.1 SDKMicrosoft .NET Framework 4.7.1 Targeting PackMicrosoft .NET Framework 4.7.1 Targeting Pack (ENU)

\"\"

https://dotnet.microsoft.com/download/visual-studio-sdks

.

 

Net4.6更改

4.0之前 String.Format( Name {0}, hours {1:hh} , name, DateTime.Now);

Unity .NET4.xEquivalent  $ Name { name }, hours { DateTime.Now:hh}

var apples

var bananas

// Before C# 6.0

Console.WriteLine(String.Format( I have {0} apples , apples));

Console.WriteLine(String.Format( I have {0} fruit , apples bananas));

// C# 6.0

Console.WriteLine($ I have {apples} apples

Console.WriteLine($ I have {apples bananas} fruit

 

unity2018.2.20里 c#写了不安全代码需要下边操作

File--BuildSetting--Player Settings--OtherSetting--Allow unsafe Code            之前版本操作add a file smcs.rsp (or gmcs.rsp ) in your Assets directory, which contains the line  -unsafe         the MonoDevelop: go to the solution files tree - Solution - your expand your solution - Assempely-CSharp - Right Click - options - Build - General - Language options - enable Allow unsafe code
 

Particle System

 

EditorGUI.EnumMaskField

替换成

EditorGUI.EnumFlagsField

 

 

Source file 工程目录\\Packages\\com.unity.textmeshpro\\Scripts\\Runtime\\FastAction.cs could not be found.

解决办法

For me it worked to remove the preinstalled Package TextmeshPro. In Unity go to Window -- Package Manager -- under Packages: remove TextmeshPro

 

 

Sourcefile 工程目录\\Packages\\com.unity.package-manager-ui\\Editor\\Sources\\Services\\Common\\Resources.cs could not be found.

 

 

 

Unity3d 错误提示 GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced

程序出現這個問題的話 程序編譯時正確 運行時報錯 而且沒有報出是哪個代碼文件出處。

這個問題一般首先去檢查Level內有用到OnGUI Debug結果發現某代碼文件在調試代碼時複製多了一行GUILayout.BeginArea 去除這行代碼後運行正常

 

 

 

Assets/T4M/Editor/T4MSC.cs(227,2): error CS0619: UnityEngine.ProceduralMaterial is obsolete: Built-in support for Substance Designer materials has been removed from Unity. To continue using Substance Designer materials, you will need to install Allegorithmic s external importer from the Asset Store.

解决办法

 

 

UnityEngine.Animator.Stop() is obsolete: Stop is obsolete. Use Animator.enabled false instead

 

ParticleScaler.cs(108,12): error CS1061: Type UnityEngine.ParticleEmitter does not contain a definition for minSize and no extension method minSize of type UnityEngine.ParticleEmitter could be found. Are you missing an assembly reference?

 

ParticleScaler.cs(125,13): error CS1061: Type UnityEngine.ParticleAnimator does not contain a definition for force and no extension method force of type UnityEngine.ParticleAnimator could be found. Are you missing an assembly reference?

 

 

Source file:

工程目录\\Packages\\com.unity.package-manager-ui\\Editor\\Sources\\Services\\Common\\Resources.cs could not be found.

 

Packages\\com.unity.textmeshpro\\Scripts\\Runtime\\TMP_ScrollbarEventHandler.cs could not be found.

解决方法

 I also figured out how to pull the text mesh pro 1.3.0 package in without trashing my old guids. if anyone is curious -
 

install text mesh pro package via package managerdelete all the stuff in your old Text Mesh Pro folderWindow Text Mesh Pro Install Essential assets (forget what it s called)find the TextMesh pro package in Library/PackageCachemove all the folders from the Library/PackageCache/textmeshpro... to your Assets/TextMesh Pro foldermark all the files in the Assets/TextMeshPro folder as Read Write so you can edit them.delete the package from Library/PackageCache/remove the entry for text mesh pro from the manifest.json

now open up unity
 

run the guid remapper that comes with TextMesh pro.everything should now work, and you can edit the TextMesh Pro source code.

 

 

Source file:

工程目录\\Packages\\com.unity.standardevents\\Editor\\Importer.cs could not be found.

Metadata file:

工程目录\\Temp\\UnityVS_bin\\Debug\\UnityEditor.StandardEvents.dll could not be found

 

Source file 工程目录\\Packages\\com.unity.textmeshpro\\Scripts\\Runtime\\TMP_DefaultControls.cs could not be found.

解决方法

C:\\Users\\用户名啊\\AppData\\Local\\Unity\\cache\\packages\\packages.unity.com\\com.unity.textmeshpro 1.2.4\\Scripts Copy到 工程同级Packages\\com.unity.textmeshpro\\Scripts 里 即可。

Unity2018.2和Unity2018.3以上还不一样

//PrefabUtility.SaveAsPrefabAssetAndConnect(treeObj, localPath, InteractionMode.AutomatedAction);

                PrefabUtility.CreatePrefab(localPath, treeObj, ReplacePrefabOptions.ConnectToPrefab);

 

PrefabUtility.GetPrefabAssetType(selectedPrefab) PrefabAssetType.Regular

PrefabUtility.GetPrefabType(selectedPrefab) PrefabType.Prefab

 

GameObject prefabObj PrefabUtility.GetCorrespondingObjectFromSource(selectedGameObj);

GameObject prefabObj (GameObject)PrefabUtility.GetCorrespondingObjectFromSource(selectedGameObj);

 

 

 


新闻动态
行业前沿
技术文章
最新产品

188进口试剂采购网 www.188bio.cn -中国试剂网,试剂网,化学试剂网,国药试剂,抗体公司,试剂公司,试剂盒公司,苏州试剂公司,北京化学试剂公司,天津化学试剂,试剂商城,试剂代理,流式抗体 细胞库查询 sitemap