大约有 3,269 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0080 秒)
...会拷贝实例对象。 BaseRender materials : Vector.<BaseMaterial> 获取潜拷贝实例材质列表,第一次使用会拷贝实例对象。 BaseRender receiveShadow : Boolean 获得是否接收阴影属性 BaseRender sharedMaterial : BaseMaterial 返回第一个材质。 BaseRende...
来源: Laya2.0_api 发布时间: 20190513
...reateImg(){ var img = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" img.loadImage(s); img.on(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.stage.addChild(img) } function createFlower...
来源: Laya_社区 发布时间: 20180412
...回复 cuixueying 赞同来自: asdf131 <!-- 物理引擎matter.js --> <script type="text/javascript" src="libs/matter.js"></script> <script type="text/javascript" src="libs/LayaRender.js"></script>//注意此处是LayaRender.js而并非matter-RenderLaya.js我们的问...
来源: Laya_社区 发布时间: 20170425
...在之后引用呀 <script src='res/protobuf.js' type='text/javascript'></script> <script src='res/bytebuffer.js' type='text/javascript'></script> <script src='LayaSample.max.js' loader='laya'></script> 有没有人能提供protobuf.js和bytebuffer.js,我是这...
来源: Laya_社区 发布时间: 20170218
native 1.0.2 连不上wss <html> <head> </head> <body> <script> var ws = new WebSocket("wss://login.huanxi.twbuyu.com:27777"); ws.onopen = function() { alert("connect success~"); ws.send('tom'); alert("send to server msg: tom"); }; ws.onmessage = function(e) { alert("a...
来源: Laya_社区 发布时间: 20181018
...老老实实,勤勤恳恳用utf8编码的,长这个样子 <layout> <clip id="1" res="res/logo.png" anchorX="0.5" anchorY="0.5" clipX="4" clipY="4" interval="100"/> <clip id="2" res="res/light1.png" anchorX="0.5" anchorY="0.5" clipX="4" clipY="4" interval="100"...
来源: Laya_社区 发布时间: 20170918
...Air-IDE(需要LayaAirIDE3.2.0beta3版本及以上),打开LayaAirIDE->文件->添加模块->勾选鸿蒙NEXT构建支持,点击安装等待模块的下载解压,如图1所示: (图1) 3. 项目构建 在LayaAirIDE->文件->构建发布,打开构建发布窗口,选择发...
来源: Laya3.0_文档 发布时间: 20250104
debugtool调试报错了 Uncaught TypeError: sprite._getBoundPointsM is not a function at Function.showDisBound (laya.debugtool.js:3365) at dhtmlXTreeObject.<anonymous> (laya.debugtool.js:4840) at dhtmlXTreeObject.e.callEvent (eval at init (laya.debugtool.js:4050), <anony...
来源: Laya_社区 发布时间: 20200420
...时候,index.html中启动类依然是 <!--启动类添加到这里--> <!--jsfile--Main--> <script src="js/LayaSample.js"></script> <!--jsfile--Main--> 这个要怎么改成我新建的类呢 附件 : --> 2018-03-21 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180321
...点击的位置发生偏移 <div style="padding: 50px 0px;height:100vh"> <div style="position: relative"> <div id="mylayaCanvas" ></div> </div> </div>如代码所示 指定layacanvas外包两层div 样式如代码这样设置后发生点击的范围跟实际按钮...
来源: Laya_社区 发布时间: 20200825