大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0101 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
... * * htmlCanvas.toBase64("image/png",0.92,function(base64){//webgl和canvas模式下为同步方法,加速器下是异步方法 * trace(base64);//打印图片base64信息,可以发给服务器或者保存...
来源: Laya_社区 发布时间: 20180719
...决 TypeError: Cannot read property 'props' of undefined preload.js:55 at Function._getSprite3DHierarchyInnerUrls (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.d3.js:30804:26) at Loader._onHierarchylhLoaded (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.d3.js:30899:17) at EventH...
来源: Laya_社区 发布时间: 20180925
...是出现 ProgressBar is not a constructor //动态加载js文件--my.js function loadJs(jspath,defer = true) { //得到html的头部dom // var theHead = document.getElementsByTagName('head').item(0); var theHead = document.getElementsByTagName('body').item(0); //创建脚本的dom对象实例 var m...
来源: Laya_社区 发布时间: 20180316
...显示如下: 手机上显示如下: 代码如下: public function LayaSample() { //初始化引擎 Laya.init(640, 1136, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SC...
来源: Laya_社区 发布时间: 20180705
...ught (in promise) TypeError: Cannot read property 'width' of null at Function.Texture._create (laya.core.js:15946) at Texture.__proto._onLoaded (laya.core.js:15750) at EventHandler.__proto.runWith (laya.core.js:1410) at ResInfo.__proto.event (laya.core.js:1166) at Loade...
来源: Laya_社区 发布时间: 20200201
... private var panel:Panel; public function Yj_Customer() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); ...
来源: Laya_社区 发布时间: 20180612
...化shader ```typescript //初始化我们的自定义shader public static function initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0 }; //所有的uniform属性 var uniformMap = { 'u_MvpMatrix': La...
来源: Laya2.0_文档 发布时间: 20210715
...周期。 * @return 指定时间的插补属性的值。 */ public static function elasticOut(t:Number, b:Number, c:Number, d:Number, a:Number = 0, p:Number = 0):Number { /*[DISABLE-ADD-VARIABLE-DEFAULT-VALUE]*/ var s:Number; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3;...
来源: Laya_社区 发布时间: 20180104
...t; var btn = document.getElementById('btn'); btn.addEventListener('click', function(){ document.getElementById("file").click(); }); </script> </body> </html>我想你理解错了,我是想触发原生js的事件,不是去监听,我把两种的demo都上传了,你们可以...
来源: Laya_社区 发布时间: 20170511
...designed explicitly with the capability to change your app’s behavior or functionality after App Review approval, which is not in compliance with App Store Review Guideline 2.5.2 and section 3.3.2 of the Apple Developer Program License Agreement. This code, combined with a remote resource, can ...
来源: Laya_社区 发布时间: 20171221