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

大约有 1,416 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)

651. 布局容器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...举例,假设一行中有两个item水平排列,它们的宽度都是100,视口宽度是300,如果都不设置Piority,那么两个item的宽度都为150;如果设置第二个元素的Piority为1,则第一个item的宽度是100,第二个item的宽度是200。 Min 设置最小值。在...

来源: Laya3.0_文档 发布时间: 20251010

652. 材质-BlinnPhong-法线贴图 [ 62%]

...w Laya.Scene()); var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 0.6, 1.1)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.directi...

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

653. 面板容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...创建完毕,此方法只执行一次 onAwake(): void { this.panel.pos(100, 100); this.panel.size(200, 200); this.panel.scrollType = Laya.ScrollType.Both; //滚动类型:水平与垂直都滚动 this.panel.vScrollBarSkin = "atlas/comp/vscroll.png"; this.panel.hScrollBarSkin = "atlas/comp/hscroll...

来源: Laya3.0_文档 发布时间: 20251010

654. LayaFlash getQualifiedClassName和组件定义问题 [ 62%]

...ddChild(mcOne); var mcTwo:MovieClip=new Classs() as MovieClip; mcTwo.speed=100; mcTwo.x=100; addChild(mcTwo); trace(mcOne.speed,mcTwo.speed); cuixueying • 2016-04-08 21:53 方法不只一种,你可以根据你的需求和喜好去选择 jianhua928 • 2016-04-09 22:22 知道为什么unity这么...

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

655. 鼠标交互-滑动 [ 62%]

...ist > TOGGLE_DIST) targetX = endPosition; Tween.to(button, { x: targetX }, 100); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Swipe...

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

656. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 62%]

... { this.list_rule.scrollBar.stopScroll(); this.list_rule.tweenTo(index - 1,100); } else if (this.list_rule.scrollBar.value > this.m_downValue) { this.list_rule.scrollBar.stopScroll(); this.list_rule.tweenTo(index + 1,100); } } this.m_downValue = -1; } } } 2020-10-18 0 0 分享 微博 QZONE 微信...

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

657. 自定义shader-简单shader [ 62%]

...ild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.addComponent(CameraMoveScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/L...

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

658. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 62%]

.../ Laya.stage.addChild(runGame); var sp = new laya.display.Sprite(); sp.x = 100; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); sp.graphics.drawTexture(texture, 0, 0, 96, 96); Laya.stage.addChild(sp); console.log(texture); } 这里大家可能有疑问 为什么路径地址是...

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

659. 如何监听移动端软键盘的弹出和收回? [ 62%]

....multiline=true; textInput.wordWrap=true; textInput.width=200; textInput.x=100; textInput.y=200; addChild(textInput); textInput.addEventListener(FocusEvent.FOCUS_IN,onFocusIn); textInput.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut); private function onFocusIn(event:FocusEvent):void { textInput....

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

660. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 62%]

...or3(0.5, 0.5, 0.5); //初始化相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); this.scene.addChild...

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