大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0249 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...** 添加提示文本 */ createLogger() { const Text = Laya.Text; logger = new Text(); logger.size(Laya.stage.width, Laya.stage.height); logger.fontSize = 30; logger.font = "SimHei"; logger.wordWrap = true; logger.color = "#FFFFFF"; logger.align = 'center'; logger.valign = 'middle'; Laya.stage.addCh...
来源: Laya2.0_示例 发布时间: 20260303
...h="http://192.168.8.104:8080/" var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.1, 0.1, 0.1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.StandardMaterial = new Laya.StandardMaterial(); material.diffuse...
来源: Laya_社区 发布时间: 20180312
...or() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) } //初始化 //加载到内存中创建出来之后添加到这里面 public InitPool(key:number,MeshSprite:Laya.MeshSprite3D){ //初始化id对应对象池, 第一次初始化则必须保证池中最...
来源: Laya_社区 发布时间: 20191206
graphics如何实现橡皮擦效果 // 增加一个容器 var box = new Sprite(); // 设置容器为画布缓存 box.cacheAs = "bitmap"; this.layCanvas.addChild(box); // 绘制红色方块 var red = new Sprite(); red.graphics.drawRect(0, 0, 150, 150, "#ff0000"); box.addChild(red); // 绘制一个...
来源: Laya_社区 发布时间: 20170707
...ivate createHScroller():void { //实例化垂直滚动条 this.hScrollBar= new HScrollBar(); //加载皮肤资源(其他资源根据规范命名后,会自动加载) this.hScrollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, ...
来源: Laya2.0_文档 发布时间: 20210715
... private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将pane...
来源: Laya2.0_文档 发布时间: 20210715
... LayaAir 1.7.17 beta JS版本 function postData(url,request) { this.http = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个...
来源: Laya_社区 发布时间: 20180315
...ivate createVScroller():void { //实例化垂直滚动条 this.vScrollBar= new VScrollBar(); //加载皮肤资源(其他资源根据规范命名后,会自动加载) this.vScrollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, ...
来源: Laya2.0_文档 发布时间: 20210715
...例如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状...
来源: Laya3.0_文档 发布时间: 20251010
...-02-05 0 0 分享 微博 QZONE 微信 mason311 赞同来自: let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); rect.hitArea = hitArea; 是这样设置吗,还是不可以呢? 2018-02-06 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 发demo 我给你看一下吧 2018-02-06...
来源: Laya_社区 发布时间: 20180205