在Unity3D中php 打开错误提示示分别是什么意思

【求助】出错了
看不明白!!!!!【unity3d吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:78,295贴子:
【求助】出错了
看不明白!!!!!收藏
Spotlight cookies must be square (width and height must be equal)UnityEngine.Light:set_cookie(Texture)Lcookie:Update() (at Assets/Lcookie.js:30)cookie必须是正方形???我的是正方形的图片啊
真奇怪了,这错误时什么意思啊??
达内unity3d培训全程&实战教学&,unity3d金牌讲师授课.免费unity3d课程试听中!到达内unity3d学院学习unity3d,只需4个月速成unity3d游戏工程师.
求大神指导!!
帮我一下吧!!!!!
从官方文档上抄来的:To create a light cookie for a spot light:1. Paint a cookie texture in Photoshop. The image sh be greyscale. White pixels means full lighting inte black pixels mean no lighting. The borders of the texture need to be completely black, otherwise th light will appear to leak outside of the spotlight. 2. In the Texture Inspector change the Repeat Wra mode to Clamp 3. Select the Texture and edit the following Import Settings in the Inspector.4. Enable Border Mipmaps 5. Enable Build Alpha From Grayscale (this way yo make a grayscale cookie and Unity converts it to a alpha map automatically) 6. Set the Texture Format to Alpha 8 Bit
。。。我不是要画一个cookie啊, 还有大神,我用WWW加载本地的cookie
www = new WWW ("file://"+Application.dataPath+"/Standard Assets/Light Cookies/test.jpg");light.cookie = ;结果找不到图片。。。这是为什么呢???
cookie图片必须是正方形。
你把你测试用的图片发给我。我的qq邮箱是
IEnumerator Start () {WWW www = new WWW ("file://"+Application.dataPath+"/Standard Assets/Light Cookies/test.jpg");tex = ;texture = new Texture2D(tex.width, tex.height, TextureFormat.Alpha8, true);for (int y
= 0; y & tex. ++y) {
for (int x
= 0; x & tex. ++x) {Color c = tex.GetPixel(x,y);float Gray=c.r*0.3f+c.g*0.59f+c.b*0.11f;Color color = new Color (1.0f,1.0f,1.0f,Gray);texture.SetPixel(x,y,color);
// Apply all SetPixel calls
texture.Apply();light.cookie =}
在unity里面调整贴图的 属性
为cookie~~~~~~~~~~~~~
登录百度帐号推荐应用}

我要回帖

更多关于 idea 错误提示 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信