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

大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)

2431. [LayaAir3]laya3.3图集使用平铺功能后绘制错误内容 [ 50%]

...*398 赞同来自: export class Main extends Laya.Scene {     onAwake(): void {         Laya.loader.load("/未命名.atlas", Laya.Loader.ATLAS).then(data=>{             let aaa = new Laya.Sprite();             this.addChild(aaa);             aaa.x = 100;             ...

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

2432. 你先用Laya.timer.frameLoop 然后再用tween才可以生效 直接用tween没用 [ 50%]

...自: Laya.timer.frameLoop(1, this, this.resetPosition); resetPosition(): void {    var aniMonkey: Laya.Sprite3D = scene.getChildByName("monkey") as Laya.Sprite3D;    aniMonkey.transform.position = new Laya.Vector3(math,math,math); } Laya.Tween.to(aniMonkey.transform.position, { x: math1, y: aniM...

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

2433. 特效LOADED监听不到 [ 50%]

...ation), null, Loader.ATLAS); } private function createAnimation(_e:*=null):void { var ani:Animation = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图集动...

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

2434. 1.7.18beta下转换3D坐标不正确 [ 50%]

...HOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; private animate(): void {    this._position.x = Math.sin(this.scaleDelta += 0.01);    this.layaMonkey3D.transform.position = this._position;    this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewM...

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

2435. laya.device.motion.Gyroscope [ 50%]

...数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标系。关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_...

来源: Laya2.0_api 发布时间: 20190513

2436. 2D拖尾渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //在节点上添加2D拖尾渲染器 this._trail2D = this.owner.addComponent(Laya.Trail2DRender); //设置淡出时间 this._trail2D.time = 1; //设置最小距离 this._trail2D.minVertexDistance = 0.1; //设置宽度...

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

2437. 2.2.0beta微信开放域无法点击 [ 50%]

...云&野鹤 赞同来自: changeMatrix(opendata:Laya.WXOpenDataViewer):void{ let OpenData:any = Laya.Browser.window.wx.getOpenDataContext();         var mat=new Laya.Matrix();         mat.translate(opendata.x,opendata.y);         var stage=Laya.stage; //mat.scale(stage._ca...

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

2438. Graphics如何设置fillStyle和strokeStyle不同透明度 [ 50%]

...mber, points:Array, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void {目前暂时不支持颜色渐变,请使用其他替代方式替换渐变功能! 2018-04-16 0 2 分享 微博 QZONE 微信 王 坤 赞同来自: 什么时候可以支持多色渐变效果?canvas默认就是支持...

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

2439. 鼠标事件:为什么没有设置穿透,也会发生穿透现象? [ 50%]

...置穿透,也会发生穿透现象? public function createMovieClip():void {             bg = CreateObj.createSprite(McUrlMgr.LOAD_BG_Path);             this.addChild(bg);             bg.x = 0;             bg.y = 0;                          v...

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

2440. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 50%]

...aya.RigidBody); //创建挡板 this.createPanel(); } private createPanel():void { let panel:Laya.Sprite = new Laya.Sprite(); panel.graphics.drawRect(0,100,100,20,0xffffff); this.addChild(panel); let box:laya.physics.BoxCollider = panel.addComponent(laya.physics.BoxCollider); box.height = 20; box.wid...

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