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

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

301. 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调整 “在屏 Canvas” 的放缩策略 [ 74%]

...,第一个 Canvas 即 “在屏Canvas” ,无论开发者怎样设置 width height,在底层都会将width height放缩物理像素。(gl.viewport gl.scissor 等接口的底层,我们也做了对应的放缩,所以开发者感知不到这个逻辑)     这种放缩,会让在...

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

302. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 74%]

.../monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```typescript Laya.loader.load("res/apes/monkey2.png",Laya...

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

303. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 74%]

...).pos(290, 150); } function createLabel(color, strokeColor) { const STROKE_WIDTH = 4; var label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya...

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

304. laya.ui.Radio [ 73%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

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

305. laya.d3.core.scene.VRScene [ 73%]

...,默认true。如果设置不可见,节点将不被渲染。Sprite width : Number 表示显示对象的宽度,以像素单位。 宽度默认0,可以手动设置,或者通过getbounds获取实际宽度。设置此宽度只用来做鼠标碰撞使用,改变后并不影响显示...

来源: laya_api 发布时间: 20170422

306. laya.ui.Button_API3.0 [ 73%]

...Prior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOpt...

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

307. laya.ui.Radio_API3.0 [ 73%]

...Prior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOpt...

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

308. laya.display.AnimationPlayerBase [ 73%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性width、height、hitArea,优先级顺序:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

309. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y = Laya.stage.height/2; this.sprite.size(512, 313); //大小 this.sprite.widt...

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

310. layabox能不能由xml生成节点 [ 73%]

...-01 14:06 ```javascript var xml = '<Box y="0" x="0" width="746" name="fill_item" height="44" editorInfo="compId=11">' + '<Label width="746" name="bg" height="44" bgColor="#e5ba8a" editorInfo=...

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