自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Hoxily的窝窝

请多多指教

  • 博客(47)
  • 收藏
  • 关注

翻译 自定义的==运算符,我们应该保留吗?

原文地址:https://blogs.unity3d.com/cn/2014/05/16/custom-operator-should-we-keep-it/当你在Unity里做这样子的操作时:if (myGameObject == null) {}Unity针对==运算符做了一些特殊处理。并非像大部分人预期的那样,我们实现了一个特别的==运算符。这服务于两个目的:1. 仅在Editor时[1],当

2017-02-24 14:48:22 675

翻译 为什么相同的一段代码运行在Editor上得到MissingReferenceException错误而在移动设备上则是NullReferenceException

原文地址:https://support.unity3d.com/hc/en-us/articles/115000404563-Why-am-I-getting-MissingReferenceException-in-the-Editor-and-a-NullReferenceException-on-mobile-devices-when-running-the-same-piece-of-co

2017-02-23 11:57:05 577

翻译 为什么我会得到“必须先修复所有的编译错误才能进入Play模式!”的错误?

原文地址:https://support.unity3d.com/hc/en-us/articles/205637689-Why-do-I-get-a-All-compiler-errors-have-to-be-fixed-before-you-can-enter-playmode-error-症状当尝试进入Play模式时,我得到了如下的错误: All compiler errors have

2017-02-23 10:49:41 28094 6

翻译 CS8025号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/205057609-What-is-error-CS8025-症状当Unity编译你的脚本时,你得到了如下错误: CS8025: Parsing error原因你可能在你复制粘贴了已有的代码到脚本后遇到该错误,或者添加了一个新的方法但是漏掉了右花括号时遇到该错误。解决方案确保脚本结构正确,如下

2017-02-23 10:39:29 776

翻译 CS1922号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/207276293-What-is-CS1922-症状当尝试进入Play模式时,我得到了如下的错误: error CS1922: A field or property `__’ cannot be initialized with a collection object initializer

2017-02-23 10:30:58 807

翻译 CS1656号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/207213593-What-is-CS1656-症状当尝试进入Play模式时,我得到了如下的错误: error CS1656: Cannot assign to `__’ because it is a `__’原因当无效的赋值操作发生时就会引发CS1656错误。在下面的例子中,我们通过尝试

2017-02-23 10:16:34 1411

翻译 CS1526号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/207432773-What-is-CS1526-症状当尝试进入Play模式时,我得到了如下错误: error CS1526: A new expression requires () or [] after type原因出现CS1526错误的原因是new运算符用法不正确

2017-02-23 10:00:07 1166

翻译 CS1525号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206126976-What-is-CS1525-症状你在Console窗口看到了如下的错误: error CS1525: Unexpected symbol `__’, expecting `__’原因当在一个表达式里遇到无效的字符时就会引发该错误。举个例子,下面例

2017-02-23 09:59:34 9480

翻译 CS1519号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206562373-What-is-CS1519-症状当尝试进入Play模式时,我得到了如下的错误: error CS1519: Unexpected symbol `__’ in class struct, or interface member declaration原因

2017-02-23 09:58:55 8004

翻译 CS1503号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/205886936-What-is-CS1503-症状你在Console窗口里得到了如下的错误: error CS1503: Argument `#1’ cannot convert `__’ expression to type `__’原因当你尝试把一个“intege

2017-02-23 09:58:21 13859

翻译 CS1502号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/205851926-What-is-CS1502-症状你在你的脚本调用某个方法时得到了如下的错误: error CS1502: The best overloaded method match for `__’ has some invalid arguments.原因当

2017-02-23 09:57:52 1374

翻译 CS1501号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206780033-What-is-CS1501-症状当尝试进入Play模式时,我得到了如下错误: error CS1501: No overload for method `__’ takes `__’ arguments原因当调用某个方法时,没有传递正确数量的参数,会

2017-02-23 09:56:51 4461

翻译 CS1061号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206193836-What-is-CS1061-症状当尝试进入Play模式时,我得到了如下的错误: error CS1061: Type `__’ does not contain a definition for `__’ and no extension method `__’ of ty

2017-02-23 09:56:18 31271

翻译 CS1612号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/207079263-What-is-CS1612-症状当尝试进入Play模式时,我得到了如下的错误: error CS1612: Cannot modify a value type return value of `__’. Consider storing it in a te

2017-02-23 09:55:30 1954

翻译 CS1624号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/207157773-What-is-CS1624-症状当尝试进入Play模式时,我得到了如下错误: error CS1624: The body of `__’ cannot be an iterator block because `__’ is not an iterator

2017-02-23 09:54:55 1970

翻译 CS1041号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206530303-What-is-CS1041-症状当尝试进入Play模式时,我得到了如下错误: error CS1041: Identifier expected原因当一个方法没有定义参数类型或者参数名时,将会引发CS1041号错误。在下面的例子中,我们移除了参数的类型“int”。解决方案

2017-02-22 16:19:30 810

翻译 CS1010号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206507033-What-is-CS1010-症状你在Console窗口里看到如下错误: error CS1010: Newline in constant原因当分号放在一个未终止的字符串后面时,会引起CS1010错误。解决方案你需要关闭引起错误的字符串的边界,以修复CS1010错误。更多

2017-02-22 16:13:33 683

翻译 CS0664号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/207515893-What-is-CS0664-症状当尝试进入Play模式时,我得到如下的错误: error CS0664: Literal of type double cannot be implicitly converted to type `float’. Add suffix `f

2017-02-22 16:04:09 723

翻译 CS0619号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/205886996-What-is-CS0619-症状当你尝试访问某个类型的成员时,得到了如下的错误: error CS0619: `__’ is obsolete: `__ is not supported any more. Use __’原因当一个类型成员使用Obsolete属性标记时(

2017-02-22 15:56:01 6411

翻译 CS0618号警告是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206733606-What-is-CS0618-症状当尝试进入Play模式时,我得到了如下的警告: warning CS0618: `__’ is obsolete: `__’原因当你尝试使用一个废弃的属性或者方法时,将会报CS0618号警告。下面的例子展示了一个脚本使用“Applicati

2017-02-22 15:46:22 10749 1

翻译 CS0432号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206518473-What-is-CS0432-症状你在Console窗口上看到了如下错误: error CS0432: Alias `__’ not found原因当你把“::”放在一个非别名的标识符右边时,就会报CS0432号错误。本例子的错误信息如下: error CS0432:

2017-02-22 15:22:24 437

翻译 CS0428号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206529373-What-is-CS0428-症状当尝试进入Play模式时,我得到了如下的错误: error CS0428: Cannot convert method group `__’ to non-delegate type `__’ Consider using parent

2017-02-22 15:16:32 3527

翻译 CS0414号警告是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206471466-What-is-CS0414-症状Console窗口出现了如下警告: warning CS0414: The private field `__’ is assigned but its value is never used原因当一个变量使用 private 修饰符修饰,

2017-02-22 15:08:33 4378

翻译 CS0266号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206570786-What-is-CS0266-症状当尝试进入Play模式时,我得到如下错误: error CS0266: Cannot implicitly convert type double’ to float’. An explicit conversion exists (are

2017-02-22 14:57:49 4399

翻译 CS0246号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206116726-What-is-CS0246-症状我尝试访问一个命名空间,但是得到了如下错误: error CS0246: The type or namespace name `__’ Could not be found. Are you missing a using directiv

2017-02-22 14:11:05 8850

翻译 CS0236号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206829863-What-is-CS0236-症状当尝试进入Play模式时,我得到了如下错误: error CS0236: A field initializer cannot reference the nonstatic field, method, or property `__’原

2017-02-22 14:00:44 3810

翻译 CS0234号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206117406-What-is-CS0234-症状你在Console窗口上看到了如下错误: error CS0234: The type or namespace `__’ does not exist in the namespace `__’. Are you missing an as

2017-02-22 13:53:53 4284 1

翻译 CS0227号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206206516-What-is-CS0227-症状我得到如下错误: error CS0227: Unsafe code requires the `unsafe’ command line option to be specified原因当你给某个方法添加了 unsafe 关键字,但是没有

2017-02-22 13:45:49 2262

翻译 CS0219号警告是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206471436-What-is-CS0219症状在Console窗口出现如下的警告: warning CS0219: The variable `__’ is assigned but its value is never used原因当一个局部变量(在一个方法内创建)被赋予一个值,但是该

2017-02-22 10:32:32 1956

翻译 CS0200号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206529603-What-is-CS0200-症状当尝试进入Play模式时,我得到了如下错误: error CS0200: Property or indexer `__’ cannot be assigned to (it is read only)原因当尝试给一个只能读取而不能改变的变

2017-02-22 10:24:07 1946

翻译 CS0165号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206470966-What-is-CS0165-症状当尝试进入Play模式时,我得到了如下错误: error CS0165: Use of unassigned local variable `__’原因引起CS0165错误的原因是,在方法里创建了某个局部变量,但是并没有使用 new 关键字

2017-02-22 10:16:50 2292

翻译 CS0163号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206497783-What-is-CS0163-症状我在Console窗口得到如下的错误: error CS0163: Control cannot fall through from one case label to another原因发生CS0163错误的原因是,某个switch拥有一

2017-02-22 10:08:10 1176

翻译 CS0161号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/207479673-What-is-CS0161-症状当尝试进入Play模式时,我得到了如下错误: error CS0161: `__’: not all code paths return a value原因引起CS0161错误的原因是,一个拥有返回类型的方法在一个或多个出口处未返回值。下面

2017-02-22 09:57:01 6449

翻译 CS0131号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206455506-What-is-CS0131-症状当尝试进入Play模式时,我得到如下的错误: error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer原因引

2017-02-22 09:47:22 1538

翻译 CS0127号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/207443183-What-is-CS0127-症状当尝试进入Play模式时,我得到了如下错误: error CS0127: `__’: A return keyword must not be followed by any expression when method returns vo

2017-02-22 09:32:50 1032

翻译 CS0122号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206454076-What-is-CS0122-症状当尝试进入Play模式时,我得到如下的错误: error CS0122: `__’ is inaccessible due to it’s protection level原因引发CS0122号错误的原因是,某个成员没有使用 public

2017-02-21 18:03:47 7955

翻译 CS0120号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206496883-What-is-CS0120-症状我在Console上得到了如下错误: error CS0120: An object reference is required to access non-static member `__’原因有两种情况会引起这个错误,列举于下:在一

2017-02-21 16:24:14 6289 4

翻译 CS0119号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206437386-What-is-CS0119-症状当尝试进入Play模式时,我得到了如下错误: error CS0119: Expression denotes a `__’ where a `__’, `__’ or `__’ was expected原因引起CS0119号错误的原因是,

2017-02-21 16:11:01 4190

翻译 CS0118号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/206365956-What-is-CS0118-症状你在Console窗口看到了如下错误: error CS0118: `__’ is a `__’ but a `__’ was expected.原因这个错误发生的原因是,某个概念没有被正确地使用,或者在一个概念上尝试执行不被允许的操作。在

2017-02-21 10:02:48 2492

翻译 CS0117号错误是什么

原文地址:https://support.unity3d.com/hc/en-us/articles/205886966-What-is-CS0117-症状你试着访问某个类型的某个成员(变量、方法等),然后得到了这样子的错误: error CS0117: `__’ does not contain a definition for `__’原因发生这个错误的原因是该数据类型不含被引用的成员。本

2017-02-21 09:47:56 7958

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除