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

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

21. mac下ide调试 [ 76%]

...个回复 Laya_Aaron 赞同来自: utils3D 里面  new vector3  前面 /*Static Safe*/ 样子的注释都删掉。   上面那个问题 改端口号,端口号被占用了 2018-09-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 18...

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

22. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 76%]

...import laya.ui.Image; class Item extends Box { /***单元格宽***/ public static var WID:int = 375; /***单元格高***/ public static var HEI:int = 85; /***单元格中图片***/ public var img:Image; public function Item() { //设置大小宽高 size(WID, HEI); //实例化图片 img = new Image()...

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

23. UI-List [ 75%]

...Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.i...

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

24. UI-List [ 75%]

...Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.i...

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

25. 2D物理-碰撞过滤器 [ 74%]

...laya.webgl.WebGL; public class Physics_Physics_CollisionFiltering { public static const k_smallGroup = 1; public static const k_middleGroup = 0; public static const k_largeGroup = -1; public static const k_triangleCategory = 0x2; public static const k_boxCategory = 0x4; public static const k_circleC...

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

26. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 73%]

...> 初始化shader ```typescript //初始化我们的自定义shader public static function initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0 }; //所有的uniform属性 var uniformMap = { 'u_MvpMat...

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

27. 为什么1.7.10之后的IDE,创建的as的3d示例项目,运行黑屏? [ 71%]

...ron 赞同来自: Utils3D.as   源码 属性 中间 有一行注释 /* [STATIC SAFE ]*/ 这样子的, 这类都删掉 2018-06-22 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 可以正常运行的,,用了新的IDE类库也是新的吗?有没有文件,配置,ide路径冲突...

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

28. 怎么只用RegExp进行正则校验 [ 71%]

怎么只用RegExp进行正则校验 private static function RegExpFunc(reg:RegExp,str:String):Boolean { var p:RegExp=reg; return p.test(str) ; } 我这样子写,直接传进去,运行报错 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

29. 微信小游戏,又是json编码的问题 [ 70%]

...见的字符 然后我改了下MiniLoader里的代码就可以了 public static function getJson(data:String):Object {                 data = data.replace(/[\ufeff]/, "");//替换一个看不见的特殊字符                 return JSON.parse(data);         } 但是这...

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

30. 2D物理-桥 [ 70%]

...ddChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,600,1050,600"; let point1 = new Laya.Sprite(); Laya.Laya.stage.addChild(point1); point1....

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