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

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

1421. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 47%]

...布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(Primitiv...

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

1422. 分享:Panel下动态修改子容器宽高并刷新显示! [ 47%]

...g','ui/vscroll$bar.png','ui/vscroll$down.png','ui/vscroll$up.png'],Handler.create(this,start)); } private function start():void { var panel:Panel=new Panel();//添加panel,切忌要先将panel添加到舞台同时设置宽高,然后再去添加子对象 panel.width=500; panel.height=500; panel.v...

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

1423. U3D导出模型和动画,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom [ 46%]

...Laya项目 动画控制器没用OverrideAnimator Rig为:Generic Avatar:Create From This Model 预览挂上状态机后无法播放 强制导出场景,并加载后提示: TypeError: Cannot read property 'transform' of undefined laya.d3.js:41839 at SkinnedMeshRenderer.__proto._computeSubSkinnedD...

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

1424. canvas下资源清理的问题 [ 46%]

...a.loader.load([{url: "res/atlas/task.atlas", type: Loader.ATLAS}], Handler.create(this, onLoaded));         }                  private function hide():void         {             if(taskView)             {                 taskView.destroy();    ...

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

1425. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 46%]

...OWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.skin, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } private crea...

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

1426. 模拟石头下落过程不明抖动 [ 46%]

...-200 Laya.Tween.to( ball,{y: 1500 } ,5000,Laya.Ease.linearOut,Laya.Handler.create(this,this.removeball,[ball])); Laya.stage.addChild( ball ); } } public removeball( ball:Laya.Sprite ){ Laya.stage.removeChild(ball); // console.log("rmove ball") } public getObj():Laya.Sprite { for( let i:number = 0 ; ...

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

1427. 微信小游戏wxmin图片加载有点问题 [ 46%]

.../ console.log(123120, ape) // Laya.loader.load('res/mao.jpg', Laya.Handler.create(this, function (){ // var t = Laya.loader.getRes('res/mao.jpg') // console.log(t) // var a = new Laya.Sprite() // a.graphics.drawTexture(t, 0,0) // a.scaleX = 0.3 // a.scaleY = 0.4 // a.pos(0,300) // Laya.stage.addChil...

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

1428. typeScript Java互调问题 [ 46%]

...ate Activity activity = null;     @Override         protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         getWindow().requestFeature(Window.FEATURE_NO_TITLE);         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,...

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

1429. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 46%]

...ode = "showall"; loader.load("../../res/guide/crazy_snowball.png", Handler.create(this, init)); function init(e) { var width = stage.width; var height = stage.height; var bg = new Sprite(); stage.addChild(bg); bg.texture = e; bg.on("click", this, onClick); var guideContainer = new Sprite(); stage.ad...

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

1430. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 46%]

...alog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.name = Dialog.CLOSE; button.po...

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