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

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

31. 文本-Overflow [ 90%]

...tion createTexts() { var t1 = createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2 = createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3 = createText(); t3.overflow = Text.HIDDEN; t3.pos(10, 210); } function createText() { var txt = new Text(); txt.text = "Layabox是HTML5引...

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

32. 缓动-缓动函数演示 [ 89%]

...(character); character.loadImage("res/cartoonCharacters/1.png"); character.pos(100, 50); } createEaseFunctionList() { const List = Laya.List, Handler = Laya.Handler; let easeFunctionsList = new List(); easeFunctionsList.itemRender = ListItemRender; easeFunctionsList.pos(5, 5); easeFunctionsList.repe...

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

33. 缓动-缓动函数演示 [ 89%]

...ite(); character.loadImage("../../res/cartoonCharacters/1.png"); character.pos(100, 50); Laya.stage.addChild(character); } function createEaseFunctionList() { var easeFunctionsList = new List(); easeFunctionsList.itemRender = ListItemRender; easeFunctionsList.pos(5, 5); easeFunctionsList.repeatX = 1...

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

34. 文本-Overflow [ 89%]

...xt = Laya.Text; let t1 = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); let t2 = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); let t3 = this.createText(); t3.overflow = Text.HIDDEN; t3.pos(10, 210); } createText() { const Text = Laya.Text; let txt = new Text(); txt.t...

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

35. laya.html.HtmlImage_API3.0 [ 87%]

...uctor Properties obj Accessors element height width Methods create destroy pos release Constructors constructor new HtmlImage(): HtmlImage Defined in laya/html/HtmlImage.ts:12 Returns HtmlImage Properties Readonly obj obj: Sprite Defined in laya/html/HtmlImage.ts:9 Accessors element get element(): H...

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

36. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 87%]

...getBounds(); var boundAngel = this.angel.getBounds(); // 设置位置 this.pos(42,399); this.tower.pos((boundBall.width - boundTower.width)/2+data.tower[towerLel].c1, -data.tower[towerLel].h+data.tower[towerLel].c2); this.aeroboat.pos((boundBall.width - boundTower.width)/2+data.tower[towerLel].c1 - ...

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

37. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 87%]

... "#232628"; setup(); })(); function setup() { createLabel("#FFFFFF", null).pos(30, 50); createLabel("#00FFFF", null).pos(290, 50); createLabel("#FFFF00", "#FFFFFF").pos(30, 100); createLabel("#000000", "#FFFFFF").pos(290, 100); createLabel("#FFFFFF", "#00FFFF").pos(30, 150); createLabel("#0080FF", "...

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

38. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 86%]

... this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel("#FFFFFF", "#00FFFF").pos(30, 150); this...

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

39. 关于射线检测,返回所有碰撞结果的问题 [ 86%]

...的问题 this.scene.physicsSimulation.raycastAllFromTo(new Laya.Vector3(pos.x, -1, pos.z + 1), new Laya.Vector3(pos.x, 0 + 99, pos.z + 1), vAlign);   这里的 vAlign,数组内的碰撞结果 顺序是随机的还是和射线方向有关,我使用的时候,这个碰撞结果顺序是随机的 ...

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

40. 分享一个Shader版的CoolDown实现 [ 86%]

... this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- import Shader = laya.webgl.shader.Shader;     export class coolDownShader extends Sha...

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