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

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

641. laya.d3.core.material.UnlitMaterial_API3.0 [ 49%]

...响的材质。 Hierarchy Material UnlitMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALBEDOCOLOR ALBEDOTEXTURE ALPHATESTVALUE DEBUG RENDERMODE_ADDTIVE RENDERMODE_CUTOUT RENDERMODE_OPAQUE RENDERMODE_TRANSPARENT RENDERQUEU...

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

642. timer无法执行 [ 49%]

...成球体,直接调用的没有问题的,可以正常执行,但是 constructor() { super(); //添加3D场景 this.onAwake(); //加载camera和light this.onStart(); //加载地面 this.loadGround(); //加载墙面 this.loadwall(); this.loopShoot(); } public loopShoot(): void{ Laya.timer.loop(10...

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

643. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

... ![5](img\5.gif)(图5) **示例代码:** ```typescript class PanelTest { constructor() { //初始化引擎 Laya.init(800, 600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel:...

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

644. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 49%]

...ya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loo...

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

645. 天空-天空穹 [ 49%]

....load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Sc...

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

646. 输入设备-贪吃蛇(重力感应) [ 49%]

...private vx:number = 0 private vy:number = 0; private targetPosition:Point; constructor() { Laya.init(Browser.width, Browser.height, WebGL); // 初始化蛇 this.initSnake(); // 监视加速器状态 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.fram...

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

647. 性能测试-卡通人物 [ 49%]

...ate moveSpeed = 2; private rotateSpeed = 2; private characterGroup: Array; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load("../../res/cartoonCharacters/cartoonCharactors.json", Ha...

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

648. 这种进度条怎么实现? [ 49%]

...20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE &...

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

649. Laya3D场景加载问题 [ 49%]

...<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         ...

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

650. 求助,屏幕旋转后滚动条没有跟随旋转 [ 49%]

...跟随旋转 module dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t....

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