• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 388 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0050 秒)

161. 缓动-缓动函数演示 [ 75%]

...ontroller(); } createCharacter() { const Sprite = Laya.Sprite; character = new Sprite(); Laya.stage.addChild(character); character.loadImage("res/cartoonCharacters/1.png"); character.pos(100, 50); } createEaseFunctionList() { const List = Laya.List, Handler = Laya.Handler; let easeFunctionsList = ne...

来源: Laya2.0_示例 发布时间: 20240929

162. Laya有提供在3D场景中绘制三角形mesh的接口吗? [ 74%]

...isionObject' of undefined Laya mac版的IDE 是没测试就上线了吗? new Laya.Sprite();绘制图形以后,怎么删除释放资源? 3d场景单材质单模型CurMem300多 问题状态 最新活动: 2019-06-27 16:59 浏览: 1168 关注: 3 人 Thompson • 2019-06-27 17:00 引擎box的源码...

来源: Laya_社区 发布时间: 20190109

163. laya里面子节点设置zOrder值时,放在函数中调用 [ 74%]

...回复问题请先登录 发起人 oy2419498011 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问在layaIDE里,怎么调用微信小程序API 使用钢体设置防穿后仍有几率会穿透 Laya mac版的IDE 是没测试就上...

来源: Laya_社区 发布时间: 20180305

164. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 74%]

...Laya.Shader3D.add("CustomShader"); //创建一个SubShader var subShader = new Laya.SubShader(attributeMap, uniformMap); //我们的自定义shader customShader中添加我们新创建的subShader customShader.addSubShader(subShader); //往新创建的subShader中添加shaderPass subShader.addShader...

来源: Laya2.0_文档 发布时间: 20210715

165. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 74%]

...function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInput(); this.addChild(this.input); this.input.x = 50;...

来源: Laya_社区 发布时间: 20180312

166. list只能显示一个图片 [ 74%]

...this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler.create(this,this.onRenderList); this.list1.selectHandler = new Laya.Handler.create(this,this.onListSelect)设置renderHandler和selectHandler, _proto.onListSelect = function(index){ console.log(index + ' sele...

来源: Laya_社区 发布时间: 20170914

167. UI组件对齐方式奇奇怪怪 [ 74%]

UI组件对齐方式奇奇怪怪 var _parent = new Box(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Box(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _child.bottom = 0 _parent.addChild(_child); 按理说 我设置了额child的botto...

来源: Laya_社区 发布时间: 20170222

168. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 74%]

...Laya.Shader3D.add("CustomShader"); //创建一个SubShader var subShader = new Laya.SubShader(attributeMap, uniformMap); //我们的自定义shader customShader中添加我们新创建的subShader customShader.addSubShader(subShader); //往新创建的subShader中添加shaderPass subShader.addShader...

来源: Laya2.0_文档 发布时间: 20210715

169. 物理触发器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 73%]

...下: ```typescript //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))); //创建物理碰撞器 var staticCollider = box.addComponent(Laya.PhysicsCollider); //标记为触发器,取消物理反馈 staticCollider.isTrigger = true; ```...

来源: Laya2.0_文档 发布时间: 20210715

170. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 73%]

...息 // Laya.Stat.show(); //添加3D场景 this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 3, 3)); this.camera.transform.rotate(new...

来源: Laya_社区 发布时间: 20180307