大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0151 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
... { //这段注释掉,imgMask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya...
来源: Laya_社区 发布时间: 20190722
...EIGHT; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; var scene = new Laya.Sprite(); scene.width = Laya.stage.width; scene.height = Laya.stage.height; scene.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#3e3534"); Laya.stage.addChild(scene); var inputText = new Laya.Input(...
来源: Laya_社区 发布时间: 20200223
...(可选)边框颜色,或者填充绘图的渐变对象。 * @param lineWidth (可选)边框宽度。 * @param percent 位置和大小是否是百分比值。 */ drawRect(x: number, y: number, width: number, height: number, fillColor: any, lineColor: any = null, lineWidth: number = 1, perce...
来源: Laya3.0_文档 发布时间: 20251010
...e3D -= 1; if(this._createSprite3D <= 0){ // var loginPanel:LoginPanel = new LoginPanel(); // loginPanel.init(); var s = new Laya.Scene(); Laya.stage.addChild(s); s.addChild(Laya.Sprite3D.load("res/h5/LayaScene_camera/camera.lh")); Laya.Sprite3D.instantiate(Laya.loader.getRes("res/h5/LayaScene_Eff...
来源: Laya_社区 发布时间: 20180403
...rite; constructor() { super(); } cameraPlayerOffset:Laya.Point=new Laya.Point(18,0); cameraOffset:Laya.Point=new Laya.Point(180,570); onEnable(): void { Laya.Physics.I.allowSleeping = false; this.strWorldRoot= this.owner.scene.strWorldRoot; ...
来源: Laya_社区 发布时间: 20231123
...gColor = "#232628"; drawSomething(); })(); function drawSomething() { sp = new Sprite(); Laya.stage.addChild(sp); //画线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 sp.grap...
来源: Laya_示例 发布时间: 20260303
...启并且修改多光源渲染参数 ```typescript var config:Config3D = new Config3D(); //开启多光源 config.enbaleMultiLight = true; //设置最大光源数 config.maxLightCount = 16; Laya3D.init(750, 1334, config); ``` > 关闭多光源渲染 ```typescript var config:Config3D = new Config3D()...
来源: Laya2.0_文档 发布时间: 20210714
...码就可以了 //初始化 _config = new HttpSelfHostConfiguration(url); //API路由 _config.Routes.MapHttpRoute( "API Default", "api/{controller}/{userna...
来源: Laya_社区 发布时间: 20200609
...y = ["#FF0000","#FFFF00"]; for (i = 0; i < 31; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*17; spr.y = 300; spr.graphics.drawRect(-10, -40, 20, 80,colors[i%2]); spr.skewX = i * 6; spr.scaleY = 1 / Math.cos(Utils.toRadian(spr.skewX)); Laya.stage.addChild(spr); } for (i = 0; i < 31; i++ ...
来源: Laya_社区 发布时间: 20180323
...击create按钮创建动画并取名,本例中取名使用的默认名字New Animation,保存后在资源管理器中会生成动画文件New Animation。 3、选择时间轴上时间,修改材质的漫反射颜色,重复操作多调整几个颜色。 4、修改动画帧的曲线变化,默...
来源: Laya2.0_文档 发布时间: 20210714