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

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

1. Sprite-根据数据绘制路径 [ 100%]

...wPentagram() { var canvas = new Sprite(); Laya.stage.addChild(canvas); var path = []; path.push(0, -130); path.push(33, -33); path.push(137, -30); path.push(55, 32); path.push(85, 130); path.push(0, 73); path.push(-85, 130); path.push(-55, 32); path.push(-137, -30); path.push(-33, -33); canvas.graph...

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

2. Sprite-根据数据绘制路径 [ 99%]

...三种开发语言、LayaAirIDE让项目开发更高效。class Sprite_DrawPath { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALI...

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

3. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 98%]

...port ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var _path2:Sprite = new Sprite(); private var arr:Array = ; private var arr2:Array = ; private var pop:TestDialogUI; pub...

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

4. 加载-多种类型资源加载 [ 97%]

...n() { var Loader = Laya.Loader; var Handler = Laya.Handler; var ROBOT_DATA_PATH = "../../res/skeleton/robot/robot.bin"; var ROBOT_TEXTURE_PATH = "../../res/skeleton/robot/texture.png"; (function() { Laya.init(100, 100); var assets = []; assets.push( { url: ROBOT_DATA_PATH, type: Loader.BUFFER }); as...

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

5. 加载-多种类型资源加载 [ 97%]

...n() { var Loader = Laya.Loader; var Handler = Laya.Handler; var ROBOT_DATA_PATH = "res/skeleton/robot/robot.bin"; var ROBOT_TEXTURE_PATH = "res/skeleton/robot/texture.png"; (function() { Laya.init(100, 100); var assets = []; assets.push( { url: ROBOT_DATA_PATH, type: Loader.BUFFER }); assets.push( {...

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

6. 绘制平明问题 [ 96%]

...te();             Laya.stage.addChild(canvas);             var path: Array<number> = [];             path.push(0, -130);             path.push(33, -33);             path.push(137, -30);             path.push(55, 32);             path.push(85, 130);   ...

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

7. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 95%]

...nt = <Point>{ x: -1, y: -1 }; /** 路径X轴投影间距 */ private _path_space_x: number; /** 路径Y轴投影间距 */ private _path_space_y: number; /** 路径长度 */ private _path_length: number; // toset: /** 路径的长度范围 */ private _path_min: number = 100; private _path_max: n...

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

8. 其他引擎的Demo-Example_21 [ 95%]

...F3666", "#F6C84C", "#4C779A"]; var colorCount = 0; var isDown = false; var path = []; var color = colors[0]; var liveGraphics; var canvasGraphics; (function() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#3da8bb"; createCanvases(); Laya.timer.frameLoop(1, this, animate); ...

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

9. ScrollRect设置会引起其他的UI资源无法正在显示 [ 95%]

...port ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _p...

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

10. 其他引擎的Demo-Example_21 [ 95%]

...EC8A49", "#AF3666", "#F6C84C", "#4C779A"], colorCount = 0, isDown = false, path = [], color = colors[0], liveGraphics, canvasGraphics; class PIXI_Example_21 { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya...

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