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

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

531. 材质-物理基础渲染材质 [ 43%]

...or (var y = mnum; y >= 0; y--) { for (var x = 0; x = 0; y--) { for (var x: number = 0; x =0; y--) { for ( var x:int = 0; x < rnum; x++) { var mtl:PBRMaterial = new PBRMaterial(); mtl.use_groundtruth = false; mtl.diffuseTexture = Texture2D.load('../../../../res/threeDimen/pbr/c1.png'); mtl.normalText...

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

532. UI-Tab [ 42%]

...onSelect); Laya.stage.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } } new laya.UI_Tab();package { import laya.display.Stage; import laya.ui.Tab; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_T...

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

533. UI-Tab [ 42%]

...onSelect); Laya.stage.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } } new laya.UI_Tab();package { import laya.display.Stage; import laya.ui.Tab; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_T...

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

534. 其他引擎的Demo-Example_21 [ 41%]

..."#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = this.colors[0]; private liveGraphics:Graphics; private canvasGraphics:Graphics; constructor() { Laya.init(Browser.width, Browser.heig...

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

535. 其他引擎的Demo-Example_21 [ 40%]

..."#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = this.colors[0]; private liveGraphics:Graphics; private canvasGraphics:Graphics; constructor() { Laya.init(Browser.width, Browser.heig...

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

536. 鼠标交互-Hold [ 37%]

...L = Laya.WebGL; export class Interaction_Hold { private HOLD_TRIGGER_TIME: number = 1000; private apePath: string = "../../res/apes/monkey2.png"; //触发hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Brows...

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

537. 鼠标交互-Hold [ 37%]

...L = Laya.WebGL; export class Interaction_Hold { private HOLD_TRIGGER_TIME: number = 1000; private apePath: string = "res/apes/monkey2.png"; //触发hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.cli...

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

538. Sprite-新手引导 [ 36%]

...tip:"../../res/guide/help3.png", tipx:900, tipy:300 } ]; private guideStep:number = 0; private hitArea:HitArea; private interactionArea:Sprite; constructor() { Laya.init(1285, 727); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; //绘制一个蓝色方块,不被抠...

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

539. UI-Clip [ 35%]

...g = "../../res/ui/coutDown.png"; private counter: Clip; private currFrame: number; private controller: Button; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = ...

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

540. Sprite-新手引导 [ 35%]

...:110, tip:"res/guide/help3.png", tipx:900, tipy:300 } ]; private guideStep:number = 0; private hitArea:HitArea; private interactionArea:Sprite; constructor() { Laya.init(1285, 727); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; //绘制一个蓝色方块,不被抠...

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