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

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

1. UI-Tree [ 100%]

...treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "type": "Box", "props": {"name": "render", "right": "0", "left":...

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

2. 混合模式-Lighter [ 95%]

...辨率是550 * 400 var phoenixWidth = 550; var phoenixHeight = 400; var bgColorTweener = new Tween(); var gradientInterval = 2000; var bgColorChannels = { r: 99, g: 0, b: 0xFF }; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(phoenixWidth * 2, phoenixHeight, WebGL); Laya.stage.ali...

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

3. 缓动-缓动函数演示 [ 94%]

...this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRender", Box); // 主要逻辑代码 var Input = Laya.Input; var Sprite = Laya.Sprite; var...

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

4. 加载-销毁Texture使用的图片资源 [ 92%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.init(); //显示性能统计信息 Stat.show(); } /** * 初始化场景 */ GameMain.prototype.init = function () { //创建背景 this.spBg = Sprite.fromImage(this.PathBg); Laya.stage.addChild(this.spB...

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

5. Mesh网格-网格加载 [ 90%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //加载网格 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/A...

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

6. UI-TextArea [ 90%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3...

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

7. 其他引擎的Demo-Example_21 [ 88%]

...ite = Laya.Sprite; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var colors = ["#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; var colorCount = 0; var isDown = false; var path = []; var color = colors[0]; var liveGraphics; var canvasGraphics; (function() { Laya.init(Browser.width, Brow...

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

8. 射线检测-点击行走 [ 87%]

...ra.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = sc...

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

9. 材质-BlinnPhong材质加载 [ 87%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonke...

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

10. 射线检测-放置物体 [ 86%]

...ra.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = sc...

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