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

大约有 1,204 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0049 秒)

91. UI-Button [ 93%]

...ya.loader.load(this.skins, Handler.create(this, this.onUIAssetsLoaded)); } private onUIAssetsLoaded(): void { for (var i: number = 0, len = this.skins.length; i < len; ++i) { var btn: Button = this.createButton(this.skins[i]); var x: number = i % this.COLUMNS * this.HORIZONTAL_SPACING + this.xOffset...

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

92. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 93%]

...uthor zzz      */     public class WWJ_Main      {         private const stageWidth:int = 540;         private const stageHeight:int = 960;                  private var Matter:Object = Browser.window.Matter;         private var LayaRender:Object = Browser.wind...

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

93. UI-Button [ 93%]

...ya.loader.load(this.skins, Handler.create(this, this.onUIAssetsLoaded)); } private onUIAssetsLoaded(): void { for (var i: number = 0, len = this.skins.length; i < len; ++i) { var btn: Button = this.createButton(this.skins[i]); var x: number = i % this.COLUMNS * this.HORIZONTAL_SPACING + this.xOffset...

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

94. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 93%]

... Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string = "res/ui/coutDown.png"; private counter: Clip; private currFrame: number; private controller: Button;...

来源: Laya2.0_文档 发布时间: 20210714

95. 高级应用-闪光 [ 93%]

...* 20) * 2; glitter.addGlitterByPositions(pos1, pos2); }class GlitterDemo { private glitter: Laya.Glitter; private pos1: Laya.Vector3; private pos2: Laya.Vector3; private scaleDelta: number = 0; private scaleValue: number = 0; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage...

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

96. 鼠标交互-双指旋转(多点触控) [ 93%]

...Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadian: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alig...

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

97. 滤镜-发光滤镜 [ 93%]

...ler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Glow { private apePath: string = "../../res/apes/monkey2.png"; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALI...

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

98. 滤镜-发光滤镜 [ 93%]

...ler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Glow { private apePath: string = "res/apes/monkey2.png"; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MID...

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

99. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 93%]

...ya.display.Sprite; public class Main { //需要切换的图片资源路径 private var monkey1:String = "res/img/monkey1.png"; private var monkey2:String = "res/img/monkey2.png"; //切换状态 private var flag:Boolean = false; private var img:Sprite; public function Main() { //初始化舞台 Laya....

来源: Laya2.0_文档 发布时间: 20210715

100. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 93%]

...r; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage....

来源: Laya2.0_文档 发布时间: 20210715