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

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

21. laya.display.cmd.FillTextureCmd_API3.0 [ 85%]

...ureCmd 填充贴图 Hierarchy FillTextureCmd Index Properties color height offset percent texture type width x y ID Methods getBoundPoints recover Properties color color: number = 4294967295 Defined in laya/display/cmd/FillTextureCmd.ts:50 (可选)绘图颜色 height height: number Defined in la...

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

22. laya.d3.physics.shape.StaticPlaneColliderShape [ 85%]

...blic Properties Show Inherited Public Properties PropertyDefined By localOffset : Vector3 获取Shape的本地偏移。 ColliderShape localRotation : Quaternion 获取Shape的本地旋转。 ColliderShape needsCustomCollisionCallback : Boolean = falseColliderShape type : int[read-only] 获取...

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

23. Panel 的 滑动问题 [ 84%]

...elParent );   _putChild: function (parentName, path, col, row, cellSize, offset, scale)  { var root = this.getChildByName(parentName);        var cell = uiUtils.createSprite(path);       root.addChild(cell);        var offsetX = 0; var offsetY = 0;      if (offset != null) {     ...

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

24. laya.d3.terrain.TerrainLeaf [ 81%]

...alcOriginalBoudingBoxAndSphere():voidTerrainLeaf  calcSkirtVertextBuffer(offsetChunkX:int, offsetChunkZ:int, beginX:int, beginZ:int, girdSize:int, vertextBuffer:Float32Array, offset:int, strideSize:int, terrainHeightData:Float32Array, heighDataWidth:int, heightDataHeight:int):voidTerrainLeaf  ca...

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

25. UI-Input [ 81%]

...GL; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SH...

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

26. UI-Input [ 81%]

...发更高效。let SPACING = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600,...

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

27. 有震屏的算法吗 [ 80%]

... * 震动屏幕     * @param callBack    * @param times    * @param offset    * @param speed    *    */     public function stageShake(callBack:Function = null, times:uint = 2, offset:uint = 12, speed:uint = 32):void   {    if(_isShake) return;        _isShake = true;  ...

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

28. 2D物理-仿生机器人 [ 80%]

...ndbeests { constructor() { this.scale = 2.5; this.pos = [500, 400]; this.m_offset = [0, -80 * this.scale]; this.pivot = [0, 8 * this.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage...

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

29. laya.utils.Byte [ 80%]

...8Array 对象并返回此对象。 Byte  writeArrayBuffer(arraybuffer:*, offset:uint = 0, length:uint = 0):void 将指定 arraybuffer 对象中的以 offset 为起始偏移量, length 为长度的字节序列写入字节流。 如果省略 length 参数,则使用默认长度 0,该方法将...

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

30. 关于2D粒子的渲染问题 [ 79%]

...PerVertex * 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 + offset + j] = particleData.position[j];     .........   我的问题是,_vertices里的数据是在哪里...

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