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

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

1871. laya.d3.core.particleShuriKen.ShurikenParticleMaterial [ 54%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ShurikenParticleMaterialProperties | Methods | Constants Packagelaya.d3.core.particleShuriKenClasspublic class ShurikenParticleMaterialInheritanceShurikenParticleMaterial BaseMaterial laya.resource.Resource ShurikenPart...

来源: Laya2.0_api 发布时间: 20190513

1872. JS里面定义一个函数,无法使用Laya.Handler.creat回调 [ 54%]

...候提示onTxtLoad is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } 2019-01-30 添加...

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

1873. 看了LayaAir引擎 HTML5 3D游戏开发基础(快速上手)以后按照示例写代码 [ 54%]

...Laya3D.init(600,400); } return LayaSample1;  }());   警告Warning!,this class[MiniAdpter] already exist: Object {init: } 运行后什么都没有白白的一片     var LayaSample=(function() { Laya3D.init(600,400);  }()); 正常看到黑屏 附件 : --> 2018-05-21 添加评论 免费帖 --> ...

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

1874. 关于event中只读属性touches,问题,求解 [ 54%]

...ya.display.Text; import laya.events.Event; import laya.webgl.WebGL; public class DemoTouch { public function DemoTouch() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; var txt:Text = new Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200;...

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

1875. Uncaught TypeError: Game.super is not a function [ 54%]

...n var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...

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

1876. 按照打地鼠教程来无法正常加载资源 [ 54%]

按照打地鼠教程来无法正常加载资源 public class Main{         public function Main(){             //初始化引擎             Laya.init(1136, 640);             Laya.stage.bgColor = "#ffcccc";             var resArr:Array = [  ...

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

1877. 编辑模式下的赋值不保留? [ 54%]

...头像者 • 2018-10-25 14:56 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖为预制...

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

1878. 附加脚本的使用问题 [ 54%]

附加脚本的使用问题 class ScaleButton {     constructor() {         console.log("加载ScaleButton");     }     private _owner: any;     public set owner(o: laya.display.Sprite) {         this._owner = o;         console.log("设置owner");     }     public get owner...

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

1879. 请问怎么通过OC直接调用一个JS函数 [ 54%]

...是什么意思?    [[conchRuntime GetIOSConchRuntime] callMethod:0 className:@"MyClass" methodName:@"CallBackFuncXXX" param:XXXX];  我按上面写会出现错误日志  reflection error : can not find class [MyClass] 如果用runJS来执行的话我代码写成这样 "Laya.MyClas...

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

1880. 2.0,Laya3D中怎么给一个物体添加作用力?求大佬解答, [ 54%]

...: https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=3D&class=laya.d3.physics.Rigidbody3D 可以获取刚体 然后 .出你需要的属性或者方法 2019-05-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 舍心人 ...

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