大约有 435 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)
Laya_社区(186) Laya3.0_api(80) Laya2.0_api(60) laya_api(52) Laya2.0_文档(30) Laya3.0_文档(25) Laya2.0_示例(1) Laya_示例(1)
...并确定是否有需要添加的版本号,因为在ResourceManager的 public static function addVersionPrefix(originURL:String):String { if (manifest && manifest[originURL]) { if (type == FILENAME_VERSION) return manifest[originURL]; return manifest[originURL] + "/" + originURL; } return ...
来源: Laya_社区 发布时间: 20180415
... /** @prop {name:pos, tips:"模型位置", type:Vector,labels:"x,y,z"}*/ public pos: number = [0,30,0];脚本属性类型为Vector,如何给xyz赋上默认值呢 现在ide中显示的都是0,试了default属性没起作用 附件 : --> 2019-05-23 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20190523
...ames No Frames ScaleBoxProperties | Methods | Events Packagelaya.uiClasspublic class ScaleBoxInheritanceScaleBox Box UIComponent Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Publ...
来源: Laya2.0_api 发布时间: 20190513
... } /** * 创建BOX */ class Item extends Laya.Box{ public static WID:number =100; public static HEI:number =30; constructor(){ super() this.size(Item.WID,Item.HEI); var img1 =new Laya.Image("bg0.png"); ...
来源: Laya_社区 发布时间: 20190522
...要直接使用 <code>new HTMLImage<code> 。 **</p> */ public static var create:Function = function(src:String, def:* = null):HTMLImage { return new HTMLImage(src, def); } tobe • 2018-07-02 17:35 @Laya_Aaron:额,这里第一句话是 创建一个实例,new HTMLImage.create()...
来源: Laya_社区 发布时间: 20180702
...条教程链接 http://ldc.layabox.com/doc/?nav=zh-as-2-3-12 as的源码 public function set skin(value:String):void { if (_skin != value) { _skin = value; _bg.skin = _skin; _bar.skin = _skin.replace(".png", "$bar.png"); callLater(changeValue); } } 2018-04-08 0 0 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20180408
...回,减少对象创建开销。 * @return 转换后的坐标的点。 */ public function localToGlobal(point:Point, createNewPoint:Boolean = false):Point {}
来源: Laya_社区 发布时间: 20180906
...module a.ts ------------------------------ module AM{ export class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ---------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts -------------------------- imp...
来源: Laya_社区 发布时间: 20180926
...); ``` > 初始化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...
来源: Laya2.0_文档 发布时间: 20210715
... /** * 初始化 地图 */ public function initMap(texture:Texture, bgID:int):void{ if(this.oldBgID != bgID){ oldBgID = bgID; if(oldTexture){ ...
来源: Laya_社区 发布时间: 20171019