大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...变对象 * @param target */ public addColorTarget(target: Laya.Sprite): void { this.targets.push(target); } /** * 设置颜色改变值 * @param color */ public targetsChangeColor(color: number) { this._targetsLastValue = this._targetsValue; this._targetsValue = color; } /** * 设置改变时...
来源: Laya_社区 发布时间: 20180930
...tring; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseMaterial.CULL_NONE; var imageData = this.canvasWrapText({canvas:docum...
来源: Laya_社区 发布时间: 20180814
...原始文件 :param pos: 直接指定插入文本的光标位置 :return: void """ content = readcontentfromfile(filepath, backuporiginalfile) if pos != None and pos > 0: content = content[:pos] + '\n' + add_content + '\n' + content[pos:] savefilewithnewcontent(content, filepath) return pos = con...
来源: Laya_社区 发布时间: 20170418
...ate(this,onLoaded), null, Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf"); if(arr && Browser.window.conch) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Text=new Text(); text.font="hu"; text.fo...
来源: Laya_社区 发布时间: 20180705
...(clipOwners: KeyframeNodeOwner[], node: KeyframeNode, propertyOwner: any): void { var nodeIndex = node._indexInList; var fullPath = node.fullPath; var keyframeNodeOwner = this._keyframeNodeOwnerMap[fullPath]; let mat = false; if (keyframeNo...
来源: Laya_社区 发布时间: 20240517
...ure)。 load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); 这里的load只有三个参数,而事实上用到4个,不清楚。。。 还有ani.index = 1;我改...
来源: Laya_社区 发布时间: 20160712
...化时,会触发事件。 Laya.stage.on(Event.RESIZE, this, function():void { // To Do - UI.pos }); 2017-06-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sfsmmc 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件...
来源: Laya_社区 发布时间: 20170613
... } private function createInput():void { panel = new Panel(); panel.size(Laya.stage.width,Laya.stage.height); panel.vScrollBarSkin=""; panel.vScrollBar.visible = ...
来源: Laya_社区 发布时间: 20180612
...画不出来,, 主域代码 Laya.timer.once(2000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = true;//小程序使用,非常费,这个参数可以根据自己的需...
来源: Laya_社区 发布时间: 20181123
...节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; t...
来源: Laya3.0_文档 发布时间: 20251010