大约有 2,159 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya3.0_api(672) Laya_社区(472) Laya2.0_api(357) laya_api(289) Laya_示例(150) Laya2.0_示例(112) Laya2.0_文档(98) Laya3.0_文档(9)
...tils.Stat; import laya.webgl.WebGL; public class ShaderPrecompile { public function ShaderPrecompile() { Laya3D.init(0, 0, true); //开启Shader编译调试模式,可在输出宏定义编译值。 ShaderCompile3D.debugMode = true; var sc:ShaderCompile3D = ShaderCompile3D.get("SIMPLE"); //部分低...
来源: Laya_示例 发布时间: 20260303
...rite clearAll removeAniSprite showDebugInfo Legend Object literal Variable Function Type alias Class Class with type parameter Property Method Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115
...ish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() funct...
来源: Laya_社区 发布时间: 20180315
...属性值,可以使用局部变量来保存它: ```javascript private function foo():void { var prop = target.prop; // 使用prop process1(prop); process2(prop); process3(prop); } ``` ### 二、计时器 LayaAir提供两种计时器循环来执行...
来源: Laya2.0_文档 发布时间: 20210715
...nt cullPlanes cullSphere direction position Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Accessor Enumeration Interface Static property
来源: Laya3.0_api 发布时间: 20231115
...)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLight.direction = _direction...
来源: Laya_示例 发布时间: 20260303
... 21:05 浏览: 1392 关注: 2 人 熊猫大侠 • 2018-01-19 09:20 public function Test1View() { Laya.timer.loop(10,this,draw); } private function draw():void { texture = Laya.loader.getRes("comp/lhjicon_5.png"); var temp:Texture = Texture.createFromTexture(texture,0,0,texture.sourceWidth...
来源: Laya_社区 发布时间: 20180118
...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...
来源: Laya3.0_api 发布时间: 20231115
...地图的div容器 ``` ### 二、接着是构造函数: ```java public function WatchPosition() { Laya.init(1, 1); init(); // 使用高精度位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError)); ...
来源: Laya2.0_文档 发布时间: 20210715
... public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); /**测试 */ var o:Object = new Object()...
来源: Laya_社区 发布时间: 20171011