大约有 235 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0046 秒)
...ani.interval = Math.round(1000/aniProps.mc[options.srcName].frameRate); // 设置动画的帧率 ani.autoPlay = options.autoPlay; // 设置动画是否自动播放 }; 给个hack参考,只要相同帧数的一种动画类型定义一个.ani就行了,比如roleWeapon_8f.ani(玩家武器的8帧...
来源: Laya_社区 发布时间: 20190215
...ight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //设置平行光的方向 var mat = directionLight.transform.worldMatrix as Laya.Matrix4x4; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; this.sprite3D = scene.addChild(new Laya....
来源: Laya_社区 发布时间: 20220815
...Panel.ts:31 创建一个新的 Panel 类实例。 在 Panel 构造函数中设置属性width、height的值都为100。 Returns Panel Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _ownGraphics _ownGraphics: boolean = false Inherited from ...
来源: Laya3.0_api 发布时间: 20231115
..._Example { public function List_Example() { Laya.init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/...
来源: Laya3.0_api 发布时间: 20231115
...sprite我在原地画了个圆为什么只有右下区域能点击,明明设置了mouseEnabled=true,设置了size了呢?虽然官方的文档说明里有介绍,真心很多不细看的人压根不知道,也包括我(!嘻嘻) var a: Laya.Sprite = new Laya.Sprite(); a.graphics.drawCircle...
来源: Laya_社区 发布时间: 20161109