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

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

391. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 55%]

...ya.ui.Button; import laya.ui.Clip; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Clip { /***控制器按钮资源***/ private var buttonSkin:String = "../../../../res/ui/button-7.png"; /***切片资源***/ private var clipSkin:String = "../../../../res/ui/...

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

392. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 55%]

...dMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer = new Laya.Sprite(); this.tMapPlayer.graphics.drawRect...

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

393. 关于Panel的双指响应问题 [ 55%]

...setup() {         Laya.loader.load("../../res/ui/dialog (3).png", Laya.Handler.create(this, function(){     var dialog = new Image("../../res/ui/dialog (3).png");     dialog.scaleX = 2;     dialog.scaleY = 2;     var panel = new Panel();     panel.vScrollBarSkin = "";     panel.hScro...

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

394. native 获取Texture上的某个区域的像素点 getPixels中有报错 [ 55%]

...e = new Laya.Texture();         tex.load("res/img/108879.png",Laya.Handler.create(this,function(): void{             tex.getPixels(0,0,1,1);         })); 附件 : --> 2019-06-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

395. ts项目加载version.json失败 [ 55%]

...Version.FILENAME_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.beginLoad)); } private beginLoad(): void { console.debug("aaaaaaaaaaaaaaaaa"); var img = new Laya.Sprite(); img.loadImage("res/test.jpg"); Laya.stage.addChild(img); } } new GameMain(); 调试的时...

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

396. 什么情况下Tween缓动会停止?除了暂停函数外 [ 55%]

...告 laya.utils.Tween.to(self.richText, { x: 0 }, 10000, null, laya.utils.Handler.create(self, self.onTween1));   然后执行游戏里面代码的时候有时候会卡住不动,没报错,非必现。 //播开始动画 var kaishi = new StartAnimView(); this.addChild(kaishi); kaishi.playAnim(); t...

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

397. Sprite graphics的显示比例问题 [ 54%]

...racter = new Laya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, nu...

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

398. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 54%]

...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071...

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

399. 导出类型为文件模式时,只能是通过Laya.Scene.load的加载返回传递的参数得到视图对象么? [ 54%]

... Devin 赞同来自: 怎么实例化? Laya.loader.load("xxx.json", Laya.Handler.create(this, this.onCompleteCall), .....);   let xxx:View = ? 这里怎么实例化这个 xxx.json为视图对象? 2018-10-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...

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

400. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeVSlider)); } private placeVSlider(): void { let vs: Laya.Slider = new Laya.VSlider(); vs.skin = "vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100; vs.value = 50; vs.tick ...

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