• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0138 秒)

1121. laya.d3.component.animator.Animator_API3.0 [ 61%]

...te之前执行,只会执行一次 Returns void play play(name?: string | null, layerIndex?: number, normalizedTime?: number): void Defined in laya/d3/component/Animator/Animator.ts:1503 播放动画。 Parameters Default value name: string | null = null 如果为null则播放默认动画,否则...

来源: Laya3.0_api 发布时间: 20231115

1122. laya.ani.bone.BoneSlot_API3.0 [ 61%]

...据数据的名称 currDisplayData currDisplayData: SkinSlotDisplayData | null Defined in laya/ani/bone/BoneSlot.ts:32 显示对象对应的数据 currSlotData currSlotData: SlotData Defined in laya/ani/bone/BoneSlot.ts:28 当前插槽对应的数据 currTexture currTexture: Texture | null Defined i...

来源: Laya3.0_api 发布时间: 20231115

1123. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 61%]

... 0, 1) 效果如动图2-6所示: (动图2-6) 如果inspector参数为null,则不会为属性构造属性输入控件,这与hidden参数设置为true不同。hidden为true是创建但不可见,inspector为null则是完全不创建。 2.7 组件属性分类与排序 组件的属性默认...

来源: Laya3.0_文档 发布时间: 20251010

1124. LayaNative 是不是不支持3D啊 [ 60%]

...e.version/lib ... js:1: TypeError: Cannot read property 'createTexture' of null                                             s.completeCreate()},n.disposeResource=function(){this._source&&(V.mainContext.deleteTexture(this._so                               ...

来源: Laya_社区 发布时间: 20180129

1125. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 60%]

...测试了,报这个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

1126. laya.ui.TextInput_API3.0 [ 60%]

...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from Text.viewport Defined in laya/display/Sprite.ts:1885 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提高渲染...

来源: Laya3.0_api 发布时间: 20231115

1127. Sprite-切换纹理 [ 60%]

...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_示例 发布时间: 20260303

1128. VR场景-VR地球 [ 60%]

...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_示例 发布时间: 20260303

1129. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 60%]

...为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

1130. Animation创建和销毁的问题 [ 60%]

...画 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