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

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

1191. 如何能监听到TouchStart和TouchEnd事件 [ 62%]

...        /**          * 表示 Alt 键是处于活动状态 (true) 还是非活动状态 (false)。          */         altKey: boolean;         /**          * 表示 Ctrl 键是处于活动状态 (true) 还是非活动状态 (false)。          */...

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

1192. 求助 Uncaught SyntaxError: Unexpected identifier [ 62%]

...什么错?按照官网教程写的//初始化3d画布 Laya3D.init(0, 0, true); //设置全屏 Laya.stage.scaleMode = Stage.SCALE_FULL; //显示统计数据 Stat.show(); // 给舞台添加laya3d场景 var scene= Laya.stage.addChild(new Scene()) as Scene; //初始化照相机 var camera = scene.addC...

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

1193. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 62%]

...mation(); // this.addChild(this._body_ani); // } // this._body_ani.play(0, true, doll_item.animation_name);  this._box = box;  this._fly_site.w = this._box._area.w - 20; this._box.graphics.drawLine( 0, this._fly_site.h, this._box._area.w, this._fly_site.h, "#ff0000", 1 );  // 当更新房间时 i...

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

1194. laya.ui.UIEvent [ 62%]

...fined By altKey : Boolean[read-only] 表示 Alt 键是处于活动状态 (true) 还是非活动状态 (false)。 Event charCode : Boolean[read-only] 包含按下或释放的键的字符代码值。字符代码值为英文键盘值。 Event ctrlKey : Boolean[read-only] 表示 Ctrl 键是处于活...

来源: Laya2.0_api 发布时间: 20190513

1195. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 62%]

...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 myScript = document.createElem...

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

1196. laya.resource.RenderTexture2D_API3.0 [ 62%]

...esource.lock Defined in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource...

来源: Laya3.0_api 发布时间: 20231115

1197. 分享,扩展Laya.Text组件实现简单的富文本 [ 62%]

...xt(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font) : this.font); Browser.context.font = ct...

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

1198. laya.d3.resource.RenderTextureCube_API3.0 [ 62%]

...Resource.lock Defined in laya/resource/Resource.ts:95 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:97 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource....

来源: Laya3.0_api 发布时间: 20231102

1199. 关于微信小游戏渲染子域图的问题 [ 62%]

... = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = true;//小程序使用,非常费,这个参数可以根据自己的需求适当调整,如果内容不变可以不用设置成true sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addC...

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

1200. 使用滤镜报错 [ 61%]

...leFilter];     v.mouseEnabled = false; } //按钮恢复 function enable_true(v) {     v.filters = null;     v.mouseEnabled = true; } 报错日志: TypeError: f.action.setValue is not a function at TextureSV.__proto.setFilters (file:///E:/FS_Project/trunk/LAYA/PFX12/H5_SHZ/bin/libs/laya.co...

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