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

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

1711. laya.d3.renderobjs.nativeobj.NativeIndexBuffer3D_API3.0 [ 57%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeIndexBuffer3D" NativeIndexBuffer3D Class NativeIndexBuffer3D Hierarchy IndexBuffer3D NativeIndexBuffer3D Index Con...

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

1712. Laya ts版,使用jasmine进行单元测试 [ 57%]

...ce.ts, 内容为module Library{ export class ToolService{ constructor(){ } public static sum(a:number, b:number):number { return a + b; } } }   一个是 src/Library/UserService.ts, 内容为module Library{ export class UserService{ constructor(){ } public multiple(a:number, b:number):number { retu...

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

1713. 鼠标交互-拖动 [ 57%]

...rt laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Interaction_Drag { private const ApePath:String = "../../res/apes/monkey2.png"; private var ape:Sprite; private var dragRegion:Rectangle; public function Interaction_Drag() { // 不支持WebGL时自动切换至Ca...

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

1714. tiledMap tileSetId是什么 [ 57%]

tiledMap tileSetId是什么 getTileProperties () method public function getTileProperties(index:int, id:int, name:String):* 得到tile自定义属性 Parameters index:int — 地图块索引 id:int — 具体的TileSetID name:String — 属性名称 这个api怎么用?tileSetId是什么 2018-01-2...

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

1715. 照相机-多照相机 [ 57%]

...aya.display.Stage; import laya.utils.Stat; import common.CameraMoveScript; public class MultiCamera { public function MultiCamera() { Laya3D.init(0, 0,true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Sce...

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

1716. 请问动画开始的钩子函数是什么? [ 57%]

...ya_Aaron 赞同来自: 1.0还是2.0  2d 还是3d    ,2.0 3d 是重写 public function onStateEnter():void {                  } 动画事件方法 2019-04-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 .Yang 相关...

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

1717. 请问addchildren()具体怎么用 [ 57%]

...@param   ...args 无数子节点。          */         public function addChildren(... args):void {             var i:int = 0, n:int = args.length;             while (i < n) {                 addChild(args[i++]);             ...

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

1718. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 57%]

...i.Wawaji;     /**      * ...      * @author zzz      */     public class WWJ_Main      {         private const stageWidth:int = 540;         private const stageHeight:int = 960;                  private var Matter:Object = Browser.window.Matter;       ...

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

1719. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 57%]

...; import laya.net.Socket; import laya.utils.Byte; import laya.webgl.WebGL; public class Game { private var socket:Socket; private var byte:Byte; public function Game() { //初始化引擎 Laya.init(600, 400,WebGL);// this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用...

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

1720. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 57%]

...示获取旋转方位信息: ```typescript private var info:Text;   public function Gyroscope_Sample()  {  Laya.init(550, 400);     info = new Text();  info.fontSize = 50;  info.color = "#FFFFFF";  info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(info); ...

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