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

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

401. 分享,扩展Laya.Text组件实现简单的富文本 [ 78%]

...型) */ export class Label extends Laya.Text { constructor() { super(); } private typeList = {}; //取出文本里面的关键字 private typeIndexList = ; //关键字所在文本的位置 private typeLines = ; //利用关键字重新划分文本 private underLineWidth = 0; //下划线长度 private...

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

402. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 78%]

...ty } = Laya; @regClass() export class UI_ColorPicker extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.sk...

来源: Laya3.0_文档 发布时间: 20251010

403. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 78%]

...7个实例  然后在他们内部封装了动画方法然后同步执行 private function loadComplete2():void { Laya.stage.addChild(view); for(var i:int=1;i<=7;i++) { var tempItem:ItemUi=new ItemUi() Laya.stage.addChild(tempItem); tempItem.x=i*100; tempItem.y=200; tempItem.setAnimated(true); ar...

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

404. 材质-BlinnPhong-高光贴图 [ 78%]

...dude2.transform.rotate(this.rotation); }); }class BlinnPhong_SpecularMap { private scene:Laya.Scene; private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); private specularMapUrl:any = ["../../res/threeDimen/skinModel/dude/Assets/dude/headS.png", "../../res/threeDimen/skinModel/dude/Assets/du...

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

405. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 78%]

...弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { private mat1: Laya.BlinnPhongMaterial; private newScene: Laya.Scene3D; private sMapRes = "remote/model/res/Conventional/map1.ls" private sBullRes = "remote/model/res/Conventional/bull.lh" private sEnemyRes = "remote/model/res/...

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

406. 无法触发浏览器文件上传框 [ 78%]

无法触发浏览器文件上传框 // 程序入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Ev...

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

407. 材质-BlinnPhong-法线贴图 [ 78%]

...onster2.transform.rotate(this.rotation); }); }class BlinnPhong_NormalMap { private scene:Laya.Scene; private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); private normalMapUrl:any = ["../../res/threeDimen/staticModel/lizardCal/rock_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizar...

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

408. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 78%]

...= Laya.Handler;     export class Loader_MultipleType {         private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json";         private ROBOT_TEXTURE_PATH: string = "res/swf/star.png";         constructor() {      ...

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

409. 预加载结束之后还是报lose skin [ 78%]

预加载结束之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } ...

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

410. 分享:SWF LABEL标签的使用! [ 78%]

...ya.ani.swf.MovieClip; import laya.events.Event; public class SwfLabelUse { private var mc:MovieClip; public function SwfLabelUse() { Laya.init(600,600); Laya.stage.bgColor="#EEFFCC"; mc=new MovieClip(); mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(mc); } private ...

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