

在Windows Server 2012中安装Microsoft Visual C++ 2015 Redistributable (x64) 失败
查看日志出现下面错误
Error 0x80240017: Failed to execute MSU package.
需要依次安装下面补丁:
1、KB2919442
https://www.microsoft.com/zh-cn.... Read More >
2020
11-07
11-07
ThinkPHP漏洞如何修复

2020
10-28
10-28
Unity3d 动态加载材质方法
Texture img = (Texture)Resources.Load("LedPicture");
GameObject.Find("Led").renderer.material.mainTexture = img;
稍微解释一下:
1、"LedPiture"是一张图片(LedPicture.png)
2、这两句话是将Led这个Object的材质换成LedPicture.... Read More >
2020
10-28
10-28
Unity 通过代码加载标准材质
目标
使用代码给物体加载标准材质。这在给 Empty 加材质时比较有用,有利于减少在 Unity 编辑器中的操作。
环境
Unity 2018.1.5f1 Personal (64bit)
方法
在挂载在 Empty 上的 Monobehavior 脚本的 Start 方法或其他生命周期方法中:
var renderer = gameObject.AddComponent&.... Read More >
2020
10-28
10-28
Unity创建游戏物体的三种方法
2020
10-28
10-28
Unity中利用代码创建prefab
// 利用代码创建prefab
using UnityEngine;
using System.Collections;
using UnityEditor;
using System.IO;
public class CameraMove : MonoBehaviour {
//生成Prefab, 参数1 需要生成的对象,参数2,名字
private voi.... Read More >
2020
10-28
10-28
自动生成材质Material
2020
10-28
10-28
Unity动态创建空GameObject的方法
因为MonoBehaviour不能New实例化 所以先创建空GameObject后在添加脚本即可
GameObject tGO = new GameObject("tGO");
tGO.AddComponent<T>();.... Read More >
2020
10-26
10-26
cocos creator 如何制作帧动画
