大约有 2,740 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1925) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
... 0, 1) 效果如动图2-6所示: (动图2-6) 如果inspector参数为null,则不会为属性构造属性输入控件,这与hidden参数设置为true不同。hidden为true是创建但不可见,inspector为null则是完全不创建。 2.7 组件属性分类与排序 组件的属性默认...
来源: Laya3.0_文档 发布时间: 20251010
...测试了,报这个md5的错,咋回事。Cannot read property 'md5' of null;at api request success callback function TypeError: Cannot read property 'md5' of null Charles • 2018-08-31 16:44 @Laya_XS:原来报错不影响进游戏,现在黑屏了。
来源: Laya_社区 发布时间: 20180830
...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from Text.viewport Defined in laya/display/Sprite.ts:1885 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提高渲染...
来源: Laya3.0_api 发布时间: 20231115
...ndler.create(this, onAssetsLoaded)); } private function onAssetsLoaded(e:*=null):void { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } private functi...
来源: Laya2.0_示例 发布时间: 20251219
...Box; var rotation = new Laya.Vector3(0, 0.002, 0); Laya.timer.frameLoop(1, null, function() { earth.transform.rotate(rotation, true); });class VRScene1 { private rotation: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Lay...
来源: Laya_示例 发布时间: 20251219
...为true,根据加载文件个数获取加载进度 Laya.loader.load(arr,null,Handler.create(this,onProgress,null,false)); } // 将进度条显示到舞台 private function showProgress():void { progressBar=new ProgressBar("loads/progressBar.png"); progressBar.pos(50,300); progressBar.width=300; pr...
来源: Laya_社区 发布时间: 20160509
...画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; testAnim2.clear(); testAnim2.removeSelf(); testAnim2 = null; Loader.clearRes("res/fish_1/stand.atlas", true); Loader.clearRes("res/fish_1/attack.atlas", true); trace("移除动画完成"); } } else if(event.keyCode === ...
来源: Laya_社区 发布时间: 20180424
...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from Text.viewport Defined in laya/display/Sprite.ts:1885 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提高渲染...
来源: Laya3.0_api 发布时间: 20231115
...aceFromBuffer is not a function TypeError: Cannot set property 'pivotX' of null 打开弹窗UI时报错 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'getSubShaderAt' of undefined Uncau...
来源: Laya_社区 发布时间: 20180307
...Img.y; } function onOrientationChange(absolute, info) { if (info.alpha === null) { alert("当前设备不支持陀螺仪。"); } else if (firstTime && !absolute && !Browser.onIOS) { firstTime = false; alert("在当前设备中无法获取地球坐标系,使用设备坐标系,你可以继续观...
来源: Laya_示例 发布时间: 20251219