大约有 538 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0044 秒)
Laya_社区(426) Laya2.0_文档(37) Laya3.0_文档(22) Laya2.0_示例(12) Laya_示例(11) laya_api(11) Laya3.0_api(10) Laya2.0_api(9)
...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
按照打地鼠教程来无法正常加载资源 public class Main{ public function Main(){ //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#ffcccc"; var resArr:Array = [ ...
来源: Laya_社区 发布时间: 20180106
...是什么意思? [[conchRuntime GetIOSConchRuntime] callMethod:0 className:@"MyClass" methodName:@"CallBackFuncXXX" param:XXXX]; 我按上面写会出现错误日志 reflection error : can not find class [MyClass] 如果用runJS来执行的话我代码写成这样 "Laya.MyClas...
来源: Laya_社区 发布时间: 20171019
...示分数的界面,比如我写了A.ui文件,自动生成一个ts类,class A extends ui.AUI,但是这个ui命名空间并不存在,如果我手动改成extends Laya.View(.ui文件里用的View标签),那么我如何让这个类去使用这个.ui文件呢?就像eui里指定skin一样...
来源: Laya_社区 发布时间: 20180323
...供给您暂时的解决方案: 在项目的laya.core.js内,修改下class Timer的以下几处。 2021-09-22 1 3 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 感谢反馈,我们查看下demo,有消息会回复您。 2021-09-15 0 0 分享 微博 QZONE 微信 刘大明 赞同来...
来源: Laya_社区 发布时间: 20210915
...结合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
...age资源 以下为加载代码,请问这样使用是否正确: class ShuiPao extends Sprite3D { constructor() { super(); let mesh = Sprite3D.load('resources/shuipao.lh'); this.addChild(mesh); ...
来源: Laya_社区 发布时间: 20170608
...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
...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
...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