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

大约有 392 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0041 秒)

291. 局部坐标转全局坐标结果与预期相差甚远 [ 56%]

...预期相差甚远 在某个地方使用var pos:Point = img.localToGlobal(new Point(img.width/2, img.height/2));转换坐标 结果是完全正确的。但最近又有地方需要用到 于是写了trace(soil_1.localToGlobal(new Point(soil_1.width/2, soil_1.height/2)));结果与预期相差很远。...

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

292. 布局后的对象的x y坐标如何获取? [ 56%]

...锁定, 无法添加新回复 发起人 jhlheimi 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 招聘:H5游戏开发 坐标:深圳南山 请问有没有方法能够获取“鼠标是否处于按下状态”? Animator 如何获...

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

293. laya.ui.Box [ 56%]

...wToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而实现...

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

294. layabox 获取图片非透明点方法 [ 56%]

...要回复问题请先登录 发起人 155*****581 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问LayaAir中如何使图片以圆形的方式显示? Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名...

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

295. 关于js继承类class的参数问题 [ 56%]

...hics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。      *         label.text = "100000";//设置 label 的文本内容。      *         label.name = "label";//设置 label 的name属性值。...

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

296. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 56%]

...切换注视目标。 ```typescript //up向量 private var _up:Vector3 = new Vector3(0, 1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position, _up)...

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

297. 摄像机捕捉目标(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 56%]

...标点击按钮切换注视目标。 ```typescript //up向量 this._up = new Laya.Vector3(0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(thi...

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

298. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 56%]

...点击按钮切换注视目标。 ```typescript //up向量 private _up = new Laya.Vector3(0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(thi...

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

299. Laya List给子元素添加事件后,滚动事件被劫持了 [ 56%]

...st给子元素添加事件后,滚动事件被劫持了 let storeTxList = new Laya.List(); storeTxList.itemRender = StoreItem;   storeTxList.name = 'storeTxList'; storeTxList.width = 610; storeTxList.pos(0, 0); storeTxList.repeatX = repeatX; storeTxList.repeatY = repeatY; //y轴个数 // 使用但...

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

300. List下使用 localToGlobal 获取坐标错误 [ 55%]

... localToGlobal 获取坐标错误 console.log(this.ui.List.localToGlobal(new Laya.Point(0, 0)));我想获取List下cell的坐标, 但是不管怎么拖动, 打印出来的数值都是一样的,不知道是使用错误还是哪里设置错误 2017-03-29 添加评论 免费帖 --> 分享 微博 QZON...

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