大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0143 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...)); 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
...研发商 TypeError: this._emitter.advanceTime is not a function http://192.168.1.240:8900/bin/ ... :831: TypeError: this._emitter.advanceTime is not a function this._emitter && this._emitter.advanceTime(t) ...
来源: Laya_社区 发布时间: 20180511
Tween.to 执行失败 //使精灵走到鼠标位置 function walkToMousePos(sprite){ console.log(Laya.stage.mouseX) ; console.log(Laya.stage.mouseY) ; console.log(sprite.x) ; console.log(sprite.y) ; var hDir = Laya.stage.mouseX>sprite.x? "right" : "left" ; var vDir = Laya.stage.mouseY>sprit...
来源: Laya_社区 发布时间: 20180331
...age=ch&category=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this....
来源: Laya2.0_文档 发布时间: 20210715
...。 2017-07-12 0 0 分享 微博 QZONE 微信 a1284964657 赞同来自: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; var sp; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 4...
来源: Laya_社区 发布时间: 20170711
... photoimg.loadImage(imgn,0,0,500,500); Laya.timer.once(1000, this, function():void{ maskimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500); }); 延时加载 的效果. 模拟加载的东西很多的时候 2016-09-23 0 8 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20160923
...te3D.load("part.lh")) as Sprite3D; part.once(Event.HIERARCHY_LOADED, this, function():void{ part.transform.localScale = new Vector3(3, 3, 3); }); 我按照这个调整粒子大小,不起作用啊 2018-07-09 0 6 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: effect.once(Laya.Ev...
来源: Laya_社区 发布时间: 20180705
...this, closeHandler); this.socket.on(Laya.Event.ERROR, this, errorHandler); function openHandler(event){ //正确建立连接; } function receiveHandler(msg){ ///接收到数据触发函数 } function closeHandler(e){ //关闭事件 } function errorHandler(e){ //连接出错 } ``` 注意:我们...
来源: Laya2.0_文档 发布时间: 20210714
...TOM;并且需要重写该类的渲染处理函数 */ var myShaderSprite = (function (_super) { this.iNum = 0; function myShaderSprite() { myShaderSprite.super(this); } Laya.class(myShaderSprite, "myShaderSprite", _super); /* 初始化此类 texture纹理对象 vb顶点数组 ib顶点索引...
来源: Laya_社区 发布时间: 20180619
...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var HitArea = Laya.HitArea; var WebGL = Laya.WebGL; var red; var guideContainer; var tipContainer; var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../r...
来源: Laya_示例 发布时间: 20260303