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

大约有 565 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)

381. AS3与JS混合编码(ActionScript-2D进阶篇(AS3)-扩展模块) [ 61%]

...lic function JSDemo() { //初始化引擎 Laya.init(0, 0); var BrowserInfo:String = __JS__('"Console Log:浏览器高:" + window.innerHeight + " 浏览器宽:"+ window.innerWidth'); trace(BrowserInfo); } } } ```   以上两种方式从运行的结果上看,是完全一致的,如图2所...

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

382. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 61%]

...声音进行控制,以及获取声音信息。 */ static playSound(url: string, loops?: number, soundClass?: any, startTime?: number) { return new Promise((resolve, reject) => { let soundChannel: Laya.SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { re...

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

383. iOS如何修改index.js里面的loadApp(conch.presetUrl||"xxxxxxxxx"); [ 61%]

...戏引擎传递参数     public abstract void game_plugin_set_option(String key, String value);这个方法传递参数,那么请问在iOS里面是否有类似的借口可以得到修改参数的目的呢?我目前使用的是直接修改了index.js里面的loadApp(conch.presetUrl||"xxxxxxxx...

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

384. laya.ui.ColorPicker [ 61%]

...获取。设置为true,对性能有一定影响。 Sprite  bgColor : String 表示颜色样本列表面板的背景颜色值。 ColorPicker blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  borderColor : String 表示颜色样本列表面板的边框颜色...

来源: laya_api 发布时间: 20170929

385. 希望和FLASH一样支持RTMP视频直播流 [ 61%]

...物理引擎视频 希望给spine增加一个showSlotSkinByName(slotName:String, name:String)方法 shader里面没有支持gl_PointCoord吗? laya2.0构建app时url不再支持.html文件,但是需要runtime.json这个文件是怎么来的? Laya Skeleton渲染时,如果中间的slot的附件...

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

386. laya.ui.ColorPicker [ 61%]

...获取。设置为true,对性能有一定影响。 Sprite  bgColor : String 表示颜色样本列表面板的背景颜色值。 ColorPicker blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  borderColor : String 表示颜色样本列表面板的边框颜色...

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

387. Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug [ 61%]

...并不能真正释放资源的bug demo: class NewTest { public static url: string = "333.json"; private loadedMap; constructor() { this.loadedMap = Laya.Loader["loadedMap"];  Laya.init(720, 1280, Laya.WebGL); Laya.Stat.show(0,0); Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; Laya.stag...

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

388. Image和HtmlImageElement加载同一张图会显示不出来 [ 61%]

...的图不会立即加载 for (int i = 0; i < 10; ++i) {      var url:String = "res/xxx" + i + ".png";      Laya.loader.load(url); }   // 先Image var img:Image = new Image(); img.skin = "res/test1.png"; img.pos(100, 100); // 再Html var html = new HTMLDivElement(); html.innerHTML = "<i...

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

389. laya.ui.FontClip [ 61%]

...chy : Boolean[read-only] 获取在场景中是否激活。 Node  align : String水平对齐方式FontClip alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值...

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

390. laya.ui.FrameClip [ 60%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重新缓存,同时也可以手动调用...

来源: laya_api 发布时间: 20170422