摘要:
一、很多2D游戏的转向都是通过改scale.x为-1实现的,但为什么我设置反向却看不到了。 二、拖动一下轴可以发现还是正面还是能看到的,只是背面被剔除了,所以还是shader的问题。 三、打开物体材质,怀疑默认着色器是自带背面剔除的(为了提高3D游戏... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(181)
评论(0)
推荐(0)
摘要:
//---------------------------//主要功能:提取预制体缩略图//---------------------------using System;using System.Collections;using System.Collec... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(628)
评论(0)
推荐(0)
摘要:
一、选中空物体 二、点击Inspector面板左上角小箭头 三、选择一个显示颜色 四、完成在场景中显示空物体 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(97)
评论(0)
推荐(0)
摘要:
一、选择一张高清背景图jpg,拖到Unity的Project面板下,设置Texture Type为Sprite。 二、在场景中创建一个空物体并命名为background,点击add component添加一个sprite renderer组件,设置Spri... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(1925)
评论(0)
推荐(0)
摘要:
using System;using System.Collections;using System.Collections.Generic;using System.Reflection;using UnityEngine;namespace Common{... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(88)
评论(0)
推荐(0)
摘要:
一、下载安装git和小乌龟工具 git下载 TortoiseGit下载(推荐下载,提供了图形界面,操作方便) 二、在github/gitee上注册账号并新建项目 以gitee举例:Gitee官网 1、注册账号,然后点击右上角的加号选择新建仓库(.gitigno... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(902)
评论(0)
推荐(0)
摘要:
void Rotate() { Vector3 mousePoint = Camera.main.ScreenToWorldPoint(Input.mousePosition); mousePoint.z = tran... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(43)
评论(0)
推荐(0)
摘要:
注意要点: 1、setRgbMode方法(在Book类中)在load之后使用否则无效。(使用此方法后Color标识将可超出枚举范围) 2、此时不能用patternBackgroundColor要用patternForegroundColor。 3、通过colo... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(228)
评论(0)
推荐(0)
摘要:
1、按下window + R运行 2、输入:shell:startup 3、进入Startup文件夹下,将需要添加自启动的文件加入到这个文件夹下。 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(50)
评论(0)
推荐(0)
摘要:
最近公司有需求要在mfc和unity进行消息互发和响应,我通过查找网上资料以及改写最后实现了这一功能。 这里对实现方法进行一下记录。 1、在Unity中添加服务器代码 ServerSocket.cs: //ServerSocket.csusing System... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(131)
评论(0)
推荐(0)

浙公网安备 33010602011771号