大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0052 秒)
Laya_社区(720) Laya3.0_api(672) Laya2.0_api(367) laya_api(298) Laya_示例(150) Laya2.0_示例(114) Laya2.0_文档(107) Laya3.0_文档(54)
...port class NewScript extends Laya.Script { @property({ type: Laya.Image }) public img: Laya.Image; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.img.skin = "resources/layaAir.png";//设...
来源: Laya3.0_文档 发布时间: 20251010
LayaAir2.0开始就无法设置透明背景了吗? public function Main() { //根据IDE设置初始化引擎 Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = "none"; } AS3版,从Laya1.x升级过来之后,发现2.0-2.8都无法通过这个来设置背景透明。 这让人...
来源: Laya_社区 发布时间: 20200816
...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/animation/AnimationClip" AnimationClip Class AnimationClip AnimationClip 类用于动画片段资源。 Hierarchy Resource AnimationClip Inde...
来源: Laya3.0_api 发布时间: 20231115
...)://该方法示例仅做参考,视项目情况自行修改或拓展 public static var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "...
来源: Laya_社区 发布时间: 20180205
...Handler.create(this, onAssetsLoaded), null, Loader.JSON); public function onAssetsLoaded(settings:ParticleSetting):void { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); ...
来源: Laya_社区 发布时间: 20170522
...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/WebXR/core/WebXRSessionManager" WebXRSessionManager Class WebXRSessionManager Manages an XRSession to work with layaAir engine author miner H...
来源: Laya3.0_api 发布时间: 20231115
...击页面的任意一个地方,都会打印出 test 。 代码如下:public function Food(dishName:String, type:String, index:Number){ this.dishName = dishName; this.type = type; this.index = index; this.setPath(); this.on(Event.MOUSE_DOWN, Food, test); } private function test():void{ trace("tes...
来源: Laya_社区 发布时间: 20180407
...错,用JS语言开发却可以加载 按照 技术文档里的事例: public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandl...
来源: Laya_社区 发布时间: 20171011
...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/maths/Vector4" Vector4 Class Vector4 Vector4 类用于创建四维向量。 Hierarchy Vector4 Implements IClone Index Constructors constructor P...
来源: Laya3.0_api 发布时间: 20231115
...ort laya.events.Event; import laya.utils.Browser; import laya.webgl.WebGL; public class Interaction_Mouse { private var txt:Text; public function Interaction_Mouse() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALI...
来源: Laya_示例 发布时间: 20260106