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

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

261. 载入场景报错 [ 77%]

...unity导出场景,只有maincamera 和light,所有代码如下 import Handler=laya.utils.Handler; import Loader=laya.net.Loader; // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTI...

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

262. ColorPicker组件的皮肤制作标准是? [ 77%]

...package  {      import laya.ui.ColorPicker;      import laya.utils.Handler;      public class ColorPicker_Example      {           public function ColorPicker_Example()           {               Laya.init(640, 800);//设置游戏画布宽高。               Laya...

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

263. 材质-BlinnPhong-高光贴图 [ 77%]

..., -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeD...

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

264. laya.net.LoaderManager_API3.0 [ 77%]

...turns void create create(url: string | (string | createItem)[], complete?: Handler | null, progress?: Handler | null, type?: string | null, constructParams?: any[] | null, propertyParams?: any, priority?: number, cache?: boolean): void Defined in laya/net/LoaderManager.ts:97 根据clas类型创建...

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

265. 人物行走图动画 [ 77%]

..., cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS);   这里的load只有三个参数,而事实上用到4个,不清楚。。。   还有ani.index = 1;我改成0,-1,2,可是在经过play后面自动变成...

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

266. 输入设备-摇一摇 [ 77%]

... Text = Laya.Text; var Shake = Laya.Shake; var Browser = Laya.Browser; var Handler = Laya.Handler; var picW = 824; var picH = 484; var console; var shakeCount = 0; (function() { Laya.init(picW, Browser.height * picW / Browser.width); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; showShakePic(); showCo...

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

267. TimeLineUI不存在的问题 [ 77%]

...执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play(); }运行时发现ui变...

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

268. ProgressBar 代码问题 [ 77%]

...ya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{   ...

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

269. laya.display.BitmapFont [ 77%]

...定文本内容的宽度。 BitmapFont  loadFont(path:String, complete:Handler):void 通过指定位图字体文件路径,加载位图字体文件,加载完成后会自动解析。 BitmapFont  parseFont(xml:XmlDom, texture:Texture):void 解析字体文件。 BitmapFont  setSpaceWidth(space...

来源: laya_api 发布时间: 20170929

270. laya.utils.Tween.to的第一个参数可以是个label? [ 77%]

...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。          * @param    duration 花费的时间,单位毫秒。          * @param    ease 缓动类型,默认为匀速运动。    ...

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