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

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

2711. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 41%]

...版本的使用示例如下(基于你DEMO的test方法)private test(): void { let t = this.sp1.drawToRenderTexture2D(80, 80, 0, 0, null, true, true, null, 80/56, 80/56); let t2 = new Laya.Sprite(); Laya.stage.addChild(t2); let Texture = Laya.Texture.create(t, 0, 0, t.width, t.height); t2.graphic...

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

2712. laya.device.motion.Gyroscope_API3.0 [ 41%]

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

来源: Laya3.0_api 发布时间: 20231115

2713. 如何将一段文字放置到粘贴板 , 或者说点击一个按钮后复制copy一段文字? [ 41%]

... android项目 demo.JSBridge.java 中 添加了一个方法 public static void copyToClip(final String text){ ClipboardManager cm = (ClipboardManager) mMainActivity.getSystemService(Context.CLIPBOARD_SERVICE); // 创建普通字符型ClipData ClipData mClipData = ClipData.newPlainText("Label&qu...

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

2714. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 41%]

...as/ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例导出的UI类 var efc:EffectAnimationDemoUI = new EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } } } ``` 运行后,按钮被按下时,动画效果如动图11所示: ![图11](img/1...

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

2715. 加载到舞台的3D模型不显示贴图 [ 41%]

...决方案,找到laya/d3/shader/files/PixelSimpleTextureSkinnedMesh.ps中void main方法中的gl_FragColor=texColor*v_Color改为gl_FragColor=texColor,即可忽略制作模型中设置的顶点色! 谢谢使用,如有问题,随时反馈!附最终效果图。   2016-10-21 3 1 分享 微...

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

2716. 微信小游戏报错 the .lh file root type must be Scene [ 41%]

...ot;res/UnityRes/Battle1V1.ls", Laya.Handler.create(this, function (): void { Laya.stage.addChild(scene); })); joshua0526 • 2018-03-27 13:32 @hejianchun:我试试看 joshua0526 • 2018-03-27 13:35 @hejianchun:我这是在微信小游戏里加载不出来,用您的那种方法在浏览器正...

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

2717. laya加载unity插件导出的场景 physics3D is not a function [ 41%]

...SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //移动摄像机位置 camera....

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

2718. @regClass编译报错! [ 41%]

...= (decorators, target, key, kind) => {     var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;     for (var i = decorators.length - 1, decorator; i >= 0; i--)       if (decorator = decorators[i])         result = (kind ? decorator(target, key, result) ...

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

2719. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 41%]

....load(skin, Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个Button实例 var btn:Button = new Button(skin); //将Button添加到舞台 Laya.stage.addChild(btn); //设置Button相关的属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮";...

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

2720. 模型与动画的导入使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...}); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播放对应的动画 this._animator.play("idle"); } else { this._animator.play("run"); } this._isRun = !this._isRun; } } 二、刚体动画 1,glTF或fbx文件导入 将glTF放入Assets目录下...

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