大约有 1,416 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(871) Laya2.0_文档(129) Laya3.0_api(105) Laya_示例(75) Laya2.0_api(66) laya_api(61) Laya3.0_文档(58) Laya2.0_示例(51)
...举例,假设一行中有两个item水平排列,它们的宽度都是100,视口宽度是300,如果都不设置Piority,那么两个item的宽度都为150;如果设置第二个元素的Piority为1,则第一个item的宽度是100,第二个item的宽度是200。 Min 设置最小值。在...
来源: Laya3.0_文档 发布时间: 20251010
...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
...创建完毕,此方法只执行一次 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
...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
...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
... { 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
...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
.../ 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
....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
...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