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

大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0110 秒)

211. 【LIST无法拖动】参照官方实例做的 [ 90%]

...自:  private setup(json :any): void {         var list = new List();         list.itemRender = Item;         list.repeatX = 3;         list.repeatY = 3;         list.x = 50;         list.y = 100;         list.spaceX = -50;...

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

212. var text = new Laya.Text();为什么text.pivot(200,200);不起作用 [ 90%]

var text = new Laya.Text();为什么text.pivot(200,200);不起作用 var text = new Laya.Text(); text.pivot(text.width / 2, text.height / 2); text.pivot(200,200); console.log(text.pivotX, text.pivotY); 打印显示都是0 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

213. 2D物理-碰撞事件与传感器 [ 90%]

....bgColor = "#232628"; this.createSensor(); } createSensor() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chai...

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

214. 滤镜的集中实现 [ 90%]

...          /**创建位图方法**/ function createImg(w,h){ var Img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/tt.png",w,h); return Img; } /**创建红色滤镜位图方法**/ function creteRedFilter(){ //颜色滤镜矩阵,红色 va...

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

215. 加载TiledMap 不显示 [ 90%]

...     private createMap(): void {         this.tiledMap = new TiledMap();         this.tiledMap.createMap("res/tiledMap/t2.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800));     }...

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

216. 粒子系统-场景与粒子 [ 90%]

...es/threeDimen/scene/particle/Example_01.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) ; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SC...

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

217. new Sprite().blendMode模式选择问题 [ 90%]

new Sprite().blendMode模式选择问题 API上描述目前只支持"lighter",可是我看官方的新手引导的引擎示例写的是另一种模式,在论坛搜了一下,JS文件实际是有好几种模式,后续升级文档能否将几种都注明清楚,对新手很不友好 2018-03-1...

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

218. LayaAir3D中的Transform变换(ActionScript-3D基础(AS3)-LayaAir3D图形系统基础概念) [ 90%]

...动,旋转。 ```typescript //移动摄像机 camera.transform.translate(new Vector3(0, 3, 3)); //旋转摄像机 camera.transform.rotate(new Vector3(-30, 0, 0), true, false); ``` 关于旋转,在Transform3D中提供了两种旋转接口,一种是角度/弧度旋转`rotate`,还一种是欧...

来源: Laya2.0_文档 发布时间: 20210714

219. 请问这是原因? [ 90%]

...a.wx.mini.MiniAdpter; public class LayaSample { public var sprite:Sprite = new Sprite(); public function LayaSample() { //初始化引擎 MiniAdpter.init(); Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //画一个圆 sprite = new Spri...

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

220. Sprite-遮罩-放大镜 [ 90%]

.../bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg2); bg2.scale(3, 3); //创建mask maskSp = new Sprite(); maskSp.loadImage...

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