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

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

1411. UI-RadioGroup [ 61%]

...s, this.initRadioGroups)); } private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: stri...

来源: Laya_示例 发布时间: 20260303

1412. UI-RadioGroup [ 61%]

...s, this.initRadioGroups)); } private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: stri...

来源: Laya2.0_示例 发布时间: 20260303

1413. UI-ProgressBar [ 60%]

...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar();package { import laya.display.Stage; import laya.ui.ProgressBar; import laya.utils.Handler; import laya.webgl.WebGL; pu...

来源: Laya2.0_示例 发布时间: 20260303

1414. laya.d3.math.BoundsImpl_API3.0 [ 60%]

...lculateBoundsintersection calculateBoundsintersection(bounds: BoundsImpl): number Defined in laya/d3/math/BoundsImpl.ts:229 Parameters bounds: BoundsImpl Returns number -1为不相交 不为0的时候返回值为相交体积 clone clone(): any Defined in laya/d3/math/BoundsImpl.ts:268 克隆。 Retu...

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

1415. 鼠标交互-自定义事件 [ 60%]

...onSpriteClick); } private onSpriteClick(e: Event): void { var randomAngle: number = Math.random() * 180; //发送自定义事件 this.sp.event(Interaction_CustomEvent.ROTATE, [randomAngle]); } // 触发自定义的rotate事件 private onRotate(newAngle: number): void { Tween.to(this.sp, { "rotation"...

来源: Laya_示例 发布时间: 20260303

1416. laya.d3.core.render.BaseRender [ 60%]

...seMaterial&gt; 获取浅拷贝材质列表。 BaseRender  sortingFudge : Number排序矫正值。BaseRenderPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:Strin...

来源: Laya2.0_api 发布时间: 20190513

1417. 骨骼动画-适配版Spine [ 60%]

...ivate templet:SpineTemplet; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动...

来源: Laya2.0_示例 发布时间: 20260303

1418. 微信小游戏编译出错 [ 60%]

微信小游戏编译出错 gameThirdScriptError Unexpected number in JSON at position 1;at api readFile success callback function SyntaxError: Unexpected number in JSON at position 2018-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

1419. 鼠标交互-自定义事件 [ 59%]

...onSpriteClick); } private onSpriteClick(e: Event): void { var randomAngle: number = Math.random() * 180; //发送自定义事件 this.sp.event(Interaction_CustomEvent.ROTATE, [randomAngle]); } // 触发自定义的rotate事件 private onRotate(newAngle: number): void { Tween.to(this.sp, { "rotation"...

来源: Laya2.0_示例 发布时间: 20260303

1420. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 59%]

... private showDragRegion(): void { //拖动限制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragRegion = new Rectangle(Laya.stage.width - dragWidthLimit &gt;&gt; 1, Laya.stage.height - dragHeightLimit &gt;&gt; 1, dragWidthLimit, dragHeightLimit); //画出拖动...

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