- 博客(97)
- 资源 (8)
- 收藏
- 关注

原创 【单例模式与对象池】——唐老师
using System.Collections;using System.Collections.Generic;using UnityEngine;/// <summary>/// --[]--/// </summary>public class Test: MonoBehaviour{ /// <summary> /// ---- /// </summary> void Start () { .
2020-08-24 22:26:15
474

原创 【unity如何打开脚本时默认用VisualStudio打开脚本】
点击unity的Edit下的——>Preferences改变这里的编辑器即可
2020-07-14 16:15:46
10272
2
原创 【InvalidCastException】:入坑记录:类型转换失败,以为接口可以解决问题
```csharppublic abstract class UserChangeInfo : MonoBehaviour{ public int id; public Sprite sprite; private Button btnSend; protected IChangeInfo changeInfo = null; private void Start() { btnSend = GetComponent<Button&.
2022-05-20 12:03:41
461
1
原创 attempt to perform arithmetic on a nil value (local ‘a‘) stack traceback
LuaException: Test:17: attempt to perform arithmetic on a nil value (local ‘a’) stack traceback:- 你调用时,传入的参数有问题。
2022-05-09 19:06:21
4861
原创 unity
原问题You are trying to create a MonoBehaviour using the ‘new’ keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at allUnityEngine.MonoBeha.
2022-02-19 00:21:48
3200
原创 【无标题】
UnassignedReferenceException: The variable tankHead of PlayerObj has not been assigned.You probably need to assign the tankHead variable of the PlayerObj script in the inspector.PlayerObj.Update () 将脚本重新挂载即可,在进行反射时可能出现了问题...
2022-02-07 16:00:21
349
原创 2021-07-24
视频范围检测操作```csharpusing System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.Video;public class AudioManager : MonoBehaviour{ public GameObject tarGet; public VideoPlayer[] vedios; public GameObject..
2021-07-24 19:32:00
746
原创 2021-06-22
Unity快速创建的小技巧using System.Collections;using System.Collections.Generic;using UnityEngine;public class AttributeSpan : MonoBehaviour{ private void Reset() { for (int i = 0; i < transform.childCount; i++) { Gam..
2021-06-22 20:18:36
204
2
原创 【如何将自己的项目放在gitee托管】——Windows系统为例
一、在gitee上注册并且创建自己的仓库——https://gitee.com/官网也有教学:https://gitee.com/help/articles/4120二、下载Git-2.29.2.2-64-bit.exe(自己的版本)——简单安装即可(自己安装在D盘目录下)在自己的桌面上可以点击鼠标右键就会出现以下内容:三、将本地的资源和自己在gitee上面的仓库建立连接:1.在D盘目录下建立自己的GitMa(自己定义)文件2.进入文件点击如下:四、点击如下(以下有删除线的字体.
2020-11-30 14:46:58
2349
原创 【读书分享】
谁写的?内容大概是什么?--------------------------------------------------观点和方法目的?-----------------------------------------------------------------传达给我什么在创立时,谁得到了利益?-------------------------------------有什么样的意义在什么样的机缘和背景下写的?-------------------------------在什么样的实
2020-09-17 20:16:04
98
原创 【属于自己的多级标题序号规则且应用于实践】
一、建立属于喜爱的分级方式规则--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------第一级:1、2、3、4、5----------------------------//书本的结构是以什么框架
2020-09-16 19:21:35
1035
原创 【unity中的问题解决日志】
2020-08-29:【导出exe文件报错】System.MissingMethodException: Method 'UnityEditor.PackageManager.Client.List' not found. at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&
2020-08-29 17:38:01
1490
原创 【场景渐变切换场景】
using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.SceneManagement;/// <summary>/// --[实现场景渐变]--/// </summary>public class Fade: MonoBehaviour{ public Texture blackTextrue; private Ma.
2020-08-28 10:45:19
255
原创 【C#高级进阶练习原码】——刘铁猛老师
using DG.DemiEditor;using Sirpan;using System;using System.Timers;using UnityEngine;public class Practice : MonoBehaviour{ void Start() { #region /* ProductFactory productFactory = new ProductFactory(); Wrap.
2020-08-24 11:21:51
884
原创 【C#进阶学习】——刘铁猛老师
一、 C#语言入门详解:类、对象、类成员简介1.1实例化对象1.2引用变量(可以对同一个对象进行操作和访问)1.3类以属性为侧重点的类以方法为侧重点的类以属性为侧重点的类1.4.静态成员与实例化成员静态成员:立属于类的,表现出来这个类的各项特征和行为状态, 比如人类的总数,增长率(对这个类来说是有意义的)。实例成员:立属于这个实例化出来的对象的各种特征和行为状态, 比如人的身高,体重,唱歌和跳舞(对这个类来说是没有意义
2020-08-22 13:03:49
5748
1
原创 【unity store下载的资源包的本地位置】
C:\Users\用户名\AppData\Roaming\Unity\Asset Store-5.x\ViveSoftware\ScriptingIntegration
2020-08-18 20:37:48
785
Old SteamVR.unitypackage
2020-07-16
Sir_Pan0.txt
2020-07-06
Sir_Pan.txt
2020-07-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人