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

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

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

...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

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

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

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

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

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

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

284. 关于.ui文件生成的ts类如何正确使用这个.ui皮肤,自动生成的代码有误 [ 57%]

...示分数的界面,比如我写了A.ui文件,自动生成一个ts类,class A extends ui.AUI,但是这个ui命名空间并不存在,如果我手动改成extends Laya.View(.ui文件里用的View标签),那么我如何让这个类去使用这个.ui文件呢?就像eui里指定skin一样...

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

285. 泄漏问题,望排查 [ 57%]

...供给您暂时的解决方案: 在项目的laya.core.js内,修改下class Timer的以下几处。     2021-09-22 1 3 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 感谢反馈,我们查看下demo,有消息会回复您。 2021-09-15 0 0 分享 微博 QZONE 微信 刘大明 赞同来...

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

286. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...结合1.3节的脚本控制,在脚本中输入如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "...

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

287. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 57%]

...age资源 以下为加载代码,请问这样使用是否正确:     class ShuiPao extends Sprite3D {         constructor() {             super();             let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);       ...

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

288. IDE编译时报错,TS2307 [ 57%]

...1815 关注: 2 人 IXgSoul • 2020-04-07 12:00 嗯导出了export default class ResponerManager kylin • 2020-04-07 18:15 @IXgSoul:辛苦传一个可复现的简单demo吧,仅从目前的信息我们无法继续调查。 IXgSoul • 2020-04-09 11:18 @kylin:查到了,是循环引用导致的。...

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

289. RopeJoint代码动态创建 无法设置otherbody [ 57%]

...g * @ email:0110110110@qq.com * @ data: 2022-04-09 15:53 */ export default class fruit extends Laya.Script {     static Fru:fruit;     public rope:Laya.RopeJoint     constructor() {         super();        fruit.Fru=this;             }      onAwake() {         let rig:Laya...

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

290. 自动旋转后残影 [ 57%]

...spatcher; import laya.utils.Browser; import laya.utils.Tween;     public class testVH {   protected var _tip:Sprite; public function testVH() { IEventDispatcher; Config.isAlpha = true; Config.isAntialias = true; Laya.init(0, 0,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1...

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