大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0101 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...点. export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D"); let ui3d: Laya.UI3D = sprite3d.getComponent(Laya.UI3D); let ui3d_root: Laya.Sprite = ui3d.sprite; console.log("ui3d_root", ui3d_root); let txtFiel...
来源: Laya_社区 发布时间: 20251020
...以下方法: 主要目的就是做射线碰撞检测. onStageMouseDown(): void { this._rayPt.x = Laya.MouseManager.instance.mouseX; this._rayPt.y = Laya.MouseManager.instance.mouseY; GameManager.instance.mainCamera.viewportPointToRay(this._rayPt, this._ray); let scene = this.owner.scene as Laya.Sce...
来源: Laya_社区 发布时间: 20190319
... window.document.addEventListener("qbrowserVisibilityChange", function(e):void{ trace("监听QQ缩小至后台事件:"+(!e.hidden ? "前置显示":"后台隐藏")); isStopLoop = e.hidden; if (e.hidden) { _isVisibility = false; if (_this._isInputting()) Input["inputElement"].target.focus = false; } e...
来源: Laya_社区 发布时间: 20171011
...s,onFloatComplete)); protected function onFloatComplete(callBack:Function):void { this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景上移除,结果执行次数很多之后,发现场景上有许多飘字并没有被移除,有没有可...
来源: Laya_社区 发布时间: 20170426
...ty clone():* 克隆。 GradientAngularVelocity cloneTo(destObject:*):void 克隆。 GradientAngularVelocity createByConstant(constant:Number):GradientAngularVelocity[static] 通过固定角速度创建一个 GradientAngularVelocity 实例。 GradientAngularVelocity createByConstantSepara...
来源: Laya2.0_api 发布时间: 20190513
.../Model_71008.lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void { scene.addChild(sprite); sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); })); 报错信息 Uncaught TypeError: Cannot read property 'transform' of undefined at SkinnedMeshRenderer._computeSubSkin...
来源: Laya_社区 发布时间: 20200104
... } public function onRender(cell:Box,index:int):void { //当list刷新时接收并更改单元格属性 var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格 ...
来源: Laya_社区 发布时间: 20180503
...ementation** public function set defaultPhysicsMemory( value : int ) : void public function get defaultPhysicsMemory() : int ### 如何设置Config3D 首先创建好一个config3D,设置好需要的参数后,在Laya3D初始化时使用。 ```typescript //创建一个config3D var _config:...
来源: Laya2.0_文档 发布时间: 20210714
...erWithShaderDefine(publicDefine:int, spriteDefine:int, materialDefine:int):void { withCompile(publicDefine, spriteDefine, materialDefine); } 然后用这个接口,就可以加载的时候预编译。 动画缓存,时效性 实效性,到底是哪个...
来源: Laya_社区 发布时间: 20180620
...允许 在子线程刷新主线程ui 必须发送new Runnable() { public void run() { ......执行脚本}} 发送请求才能进行刷新ui 2019-05-22 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 你快一点儿 相关问题 看了其...
来源: Laya_社区 发布时间: 20190522