自己写的shader按个改了一遍才跑起来,引擎组这是又改shader写法了嘛
terrain collider 有时候触发不了碰撞事件
抱歉,能提供一下demo么
请问下具体什么报错
unity里的自动吸附/对齐, 还有顶点对齐, 加一下呗
确实因为添加 deferred 管线导致标准材质有修改,很抱歉,我们会出一个升级文档
3.1 中, 好像键盘输入做了一些变更
现在捕获到的 system event 里头拿不到键盘的 rawEvent 了, 一些精细的键盘操作需求还是需要用原始事件才能判断到, 例如按住重复, 左右 shift ctrl 等.
看了下 3d/engine/pal/input/web/keyboard.ts 里头只回传了 keycode
private _createCallback (eventType: string) {
return (event: KeyboardEvent) => {
const inputEvent: KeyboardInputEvent = {
type: eventType,
code: event.keyCode, // TODO: keyCode is deprecated on Web standard
timestamp: performance.now(),
};
event.stopPropagation();
event.preventDefault();
this._eventTarget.emit(eventType, inputEvent);
};
}
把 event.keyCode 改成 event 回传整个keybordEvent 就可以了
因为 event-manager 里头本来就有做这个区分
constructor (keyCode: number | KeyboardEvent, isPressed: boolean, bubbles?: boolean) {
super(Event.KEYBOARD, bubbles);
if (typeof keyCode === 'number') {
this.keyCode = keyCode;
} else {
this.keyCode = keyCode.keyCode;
this.rawEvent = keyCode;
}
this.isPressed = isPressed;
}
为啥键盘事件做了一个强制 preventDefault 呢, 这样无法响应浏览器本来应有的操作了, 这个决定权还是留给开发者自己比较好吧, 有需要自行加入
然后 3.1 下所有组件的 blendfactor 都消失了… 这要怎么设置
还有就是编辑器预览的效果和实际运行看到的效果不一样
可以创建一个材质实现相同的功能
麻烦看看地形系统为啥刷不上纹理啊
Amazing!
However, tiledmap component has lots of issues.
- After update tileset, errors appear.
- Cocos 3.1 shows the map incorrectly and picks only the first tile in the tileset.
- Culling is not working.
- Animation tiles causing issues.
I am using latest tiled: 1.6.0 and also tried with 1.2.0 - same results.
On Cocos 3.0 it does not load at all!
On Cocos 2.x.x it works perfect… well almost.
设计上不应该提供 rawEvent 的,我们之后考虑下返回更具体的 keyCode,可以方便开发者区分 左右 shift ctrl
为啥键盘事件做了一个强制 preventDefault 呢, 这样无法响应浏览器本来应有的操作了, 这个决定权还是留给开发者自己比较好吧, 有需要自行加入
这块从 2.x 一直延续下来都是这么实现的,请问你这边具体的需求是什么呢,我们看看能不能支持
因为我这边目前这个项目是个 web 端的音游, 所以可能键盘操作会严谨些
目前用到的接口有
KeyboardEvent.repeat 和 KeyboardEvent.code
前者可以实现按住的状态而不重复触发 press, 后者可以区分左右功能键
KeyboardEvent. keyCode 马上要被淘汰了所以新版迭代中也去掉了
preventDefault 这个, 也是因为是 web 端的原因, 大部分时候不应该锁住用户的其他输入, 只在需要的时候, 才手动加入
请问单张图片的预乘格式如何设置
Could you please send us a demo? We’ll arrange time to check and fix it ASAP 
论坛为啥有人说英语啊 这个论坛不是中国区的么
I am sorry I dont speak Chinees, I came here because I am a Cocos Creator developer and it looks like the community here is one of the best! (better than the english one).
Any way @308303735 I am attaching a link to a folder in my google drive:
https://drive.google.com/drive/folders/1FAN1VMkYCsrMbLVkPcSgtCgeIaMwUW5e?usp=sharing
This link will provide you all the information about the bug with the tiledmaps.
Here you go:
https://drive.google.com/drive/folders/1FAN1VMkYCsrMbLVkPcSgtCgeIaMwUW5e?usp=sharing
I also created a movie for you 
There are multiple errors in here:
- Tiled images are rendering incorrectly in cocos (They are scaled and streached to fit the tiled box).
- I had to set the images as sprite-frames (the cocos engine should do it automatically).
- It always renders the first tile in the tileset.
- I tried embeded and non-embeded in the tiled editor. Nothing worked.
- I couldnt drag for some reason images from folder to the cocos (at the beggining of the video).
Thanks a lot any way!
Very good engine indeed!
copy that. And feel free tell to us.