大约有 3,979 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0076 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...,我按照文档里的方法写了一个js文件,在AS3脚本里加入 var worker:* = new Browser.window.Worker("my_task.js"); 执行时总是报错,加载不了my_task.js这个文件,是为什么呢? [warn]Retry to load: D:/LayaBox/1219/bin/h5/my_task.js [error]Failed to load: D:/LayaBox/...
来源: Laya_社区 发布时间: 20180108
...可在输出宏定义编译值。 Laya.ShaderCompile3D.debugMode = true; var sc = Laya.ShaderCompile3D.get("SIMPLE"); //部分低端移动设备不支持高精度shader,所以如果在PC端或高端移动设备输出的宏定义值需做判断移除高精度宏定义 if (Laya.WebGL.shaderHighPrecisi...
来源: Laya_示例 发布时间: 20250223
... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWi...
来源: Laya_社区 发布时间: 20240305
...ne 来实现 下面 只是样式 变量 写活 应该满足 for(var i=1;i<40;i+=2){ sp.graphics.drawLine(1+(4*i), 58, 1+(4*i)+4, 58, "#ff0000", 3); } 2017-04-24 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 楼上回答的很对,目前...
来源: Laya_社区 发布时间: 20170423
... private function onLoaded():void { var texture:Texture=Laya.loader.getRes("walk.png"); //计算好UV,创建新的texture var texEnd:Texture=Texture.create(texture,240,248,120,118); //将新的tex...
来源: Laya_社区 发布时间: 20160506
...多个动画。 代码示例: ```typescript public class Main { private var aniPath = "res/bone/spineboy-pma.skel"; private var templet:SpineTempletBinary; private var skeleton:SpineSkeleton; private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height, WebGL); ...
来源: Laya2.0_文档 发布时间: 20210715
...地址。 SoundManagerProperty DetailautoReleaseSoundpropertypublic static var autoReleaseSound:Boolean = true 音效播放后自动删除。 The default value is true.autoStopMusicproperty autoStopMusic:Boolean 失去焦点后是否自动停止背景音乐。 Implementation public static f...
来源: laya_api 发布时间: 20170929
...美解决 private static function clearRole3dRes(groupName:String):void { var arr:Array = Loader.groupMap[groupName]; if(arr != null){ for each (var url:String in arr) { var item:Resource = Laya.loader.getRes(url); if(item != null){ item.destroy(); item = null; } } Loader.clearResByGroup(groupName);...
来源: Laya_社区 发布时间: 20180517
...1 这个是正则表达式判断条件导致的,您在core.js文件中将var execResult = /(?:[^\s\!-\/])+$/.exec(newLine); 换成var execResult = /(?:\w|-)+$/.exec(newLine);试试。 2022-07-09 1 1 分享 微博 QZONE 微信 Laya_Yan 赞同来自: 请问使用的哪个版本的呢?方便提...
来源: Laya_社区 发布时间: 20220708
... public function set density(value:Number):voidfixtureproperty public var fixture:*[只读]b2Fixture对象 frictionproperty friction:Number摩擦力,取值范围0-1,值越大,摩擦越大,默认值为0.2 Implementation public function get friction():Number public function...
来源: Laya2.0_api 发布时间: 20190513