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

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

341. UI-Input [ 81%]

...er; import laya.webgl.WebGL; public class UI_Input { private const SPACING:int = 100; private const INPUT_WIDTH:int = 300; private const INPUT_HEIGHT:int = 50; private const Y_OFFSET:int = 50; private var skins:Array; public function UI_Input() { // 不支持WebGL时自动切换至Canvas Laya.init(8...

来源: Laya2.0_示例 发布时间: 20251130

342. 关于2D粒子的渲染问题 [ 81%]

...reate(settings, position, velocity, _currentTime);       var startIndex:int = _firstFreeElement * _floatCountPerVertex * 4;     for (var i:int = 0; i < 4; i++) {     var j:int, offset:int;     for (j = 0, offset = 4; j < 3; j++)     _vertices[startIndex + i * _floatCountPerVertex + ...

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

343. 鼠标交互-滑动 [ 80%]

...rowser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Swipe { //swipe滚动范围 private TrackLength: number = 200; //触发swipe的拖动距离 private TOGGLE_DIST: number = this.TrackLength / 2; private buttonPosition: number; private beginPosition: number; privat...

来源: Laya_示例 发布时间: 20251130

344. Label Text控件 无法显示全子图 [ 80%]

....as   class TextRender getFontSizeInfo 函数,最后部分    var xoff:int = Math.max( orix - pixelBBX[0], 0);    var yoff:int = Math.max( oriy - pixelBBX[1], 0);    var bbxw:int = pixelBBX[2] - pixelBBX[0];    var bbxh:int = pixelBBX[3] - pixelBBX[1]+1; 原来没有+1,如果效果不行...

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

345. laya.map.TileAniSprite [ 80%]

...轴坐标信息。 Sprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node parent : Node[read-only] 父节点。Node pivotX : NumberX轴 轴心点的位置,单位为像素,默认为0。轴心点会影响对象位置,缩放中心,旋转中心。Sprite...

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

346. 有没有浮雕滤镜? [ 80%]

...镜和混合模式 /**@private 模糊滤镜。*/ public static const BLUR:int = 0x10; /**@private 颜色滤镜。*/ public static const COLOR:int = 0x20; /**@private 发光滤镜。*/ public static const GLOW:int = 0x08; public static const NAMES:Array = /*[STATIC SAFE]*/["normal", "add", "multiply"...

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

347. laya.display.Animation [ 80%]

...:没有额外内存开销,无需renderTarget支持。 Sprite count : int[read-only] 当前动画中帧的总数。 AnimationBase customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Sprite destroyed ...

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

348. UI-RadioGroup [ 80%]

...mport laya.webgl.WebGL; public class UI_RadioGroup { private const SPACING:int = 150; private const X_OFFSET:int = 200; private const Y_OFFSET:int = 200; private var skins:Array; public function UI_RadioGroup() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV...

来源: Laya_示例 发布时间: 20251130

349. UI-RadioGroup [ 80%]

...mport laya.webgl.WebGL; public class UI_RadioGroup { private const SPACING:int = 150; private const X_OFFSET:int = 200; private const Y_OFFSET:int = 200; private var skins:Array; public function UI_RadioGroup() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV...

来源: Laya2.0_示例 发布时间: 20251130

350. 在加载swf动画之后在封装的里面报错了 , 用的官网的例子 [ 80%]

...   /**     *从字节流的当前字节偏移量位置处读取一个 Int16 值。     *@return Int16 值。     */     __proto.getInt16=function(){         if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds";         var us=this._d_.getInt16(th...

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