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

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

1421. laya底层的加载为什么可以new两次 [ 76%]

...行 new HTMLImage.create(url, {onload: onload, onerror: onerror, onCreate: function(img:*):void { image = img; //增加引用,防止垃圾回收 imgCache[url] = img; }}); 这里的调用create本身就是返回一个对象了,为什么这里还能在new那个对象呢,而且如果用一个t去...

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

1422. 绘制形状时事件不触发 [ 76%]

绘制形状时事件不触发 function myRing(x,y,r1,color1,r2,color2) {         this.sprite = new Laya.Sprite();     this.sprite.on('mousedown', this, on_down);     this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2);     this.sprite.graphics.drawCircle(x, y, r1, color1, color...

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

1423. Laya中的宏编译要怎么用啊 [ 76%]

... 3、宏编译示例代码   3.1 LayaFlash单行宏编译写法private function byteArrayReadIntTest():void { var byteArray:ByteArray = new ByteArray(); byteArray.writeInt(100); byteArray.position = 0; var value:int; /*[IF-FLASH]*/value = byteArray.readUnsignedInt(); //[IF-SCRIPT]value = byteArray...

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

1424. laya.d3.core.material.ParticleMaterial [ 76%]

...Texture:BaseTexture 获取漫反射贴图。 Implementation     public function get diffuseTexture():BaseTexture    public function set diffuseTexture(value:BaseTexture):voidrenderModeproperty renderMode:int 获取渲染状态。 Implementation     public function get renderMode():int ...

来源: laya_api 发布时间: 20170603

1425. laya.ui.ProgressBar_API3.0 [ 76%]

...ic class ProgressBar_Example { private var progressBar:ProgressBar; public function ProgressBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/progress.png", "resource/ui/progress$bar.png"],...

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

1426. UI-Tab [ 76%]

...r skins:Array = ["../../res/ui/tab1.png", "../../res/ui/tab2.png"]; public function UI_Tab() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage....

来源: Laya2.0_示例 发布时间: 20260303

1427. TypeError: Cannot read property '_byteLength' of null [ 76%]

...打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError...

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

1428. VR场景-VR地球 [ 76%]

...ar rotation = new Laya.Vector3(0, 0.002, 0); Laya.timer.frameLoop(1, null, function() { earth.transform.rotate(rotation, true); });class VRScene1 { private rotation: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stag...

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

1429. 射线检测-点击行走 [ 76%]

...aternion = new Laya.Quaternion(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { box.transform.position = _position; box.transform.rotation = _quaternion; //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instan...

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

1430. laya.events.Event [ 76%]

...态 (true) 还是非活动状态 (false)。 Implementation     public function get altKey():BooleancharCodeproperty charCode:Boolean  [read-only] 包含按下或释放的键的字符代码值。字符代码值为英文键盘值。 Implementation     public function get charCode():Booleanc...

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