大约有 3,008 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...ange261, 有谁知道什么原因导致的吗? 怎样解决? Warning!,this class[MiniAdpter] already exist: Object {init: } 请问object层中添加的sprite怎么添加点击事件 IDE不能运行调试提示:Chrome error: Error:... LayaAirIDE2.2 - Laya3D init error ,must support webGL 问题状...
来源: Laya_社区 发布时间: 20181020
...port Event = Laya.Event; import HttpRequest = Laya.HttpRequest; const { regClass } = Laya; @regClass() export class Network_GET extends Laya.Script { private hr: HttpRequest; private logger: Laya.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); ...
来源: Laya3.0_文档 发布时间: 20250214
....ui.RadioGroup; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_RadioGroup { private const SPACING:int = 150; private const X_OFFSET:int = 200; private const Y_OFFSET:int = 200; private var skins:Array; public function UI_RadioGroup() { // 不支持WebGL时自动切换至Canvas L...
来源: Laya_示例 发布时间: 20250226
API DocumentationAll Packages | All Classes | Index | Frames No Frames ShuriKenParticle3DProperties | Methods | Events Packagelaya.d3.core.particleShuriKenClasspublic class ShuriKenParticle3DInheritanceShuriKenParticle3D RenderableSprite3D Sprite3D Node EventDispatcher Object ShuriKenParti...
来源: Laya2.0_api 发布时间: 20190513
...叫apploader.js的类中定义的apploader.js关于该类的定义如下 class conchFloatArrayKeyframe { constructor() { this._nativeObj = new _conchFloatArrayKeyframe(); } set time(value) { this._nativeObj.setTime(value); } get time()...
来源: Laya_社区 发布时间: 20190629
...之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 在使用自定义材质之前,一定...
来源: Laya2.0_文档 发布时间: 20210715
...5%9F%9F%E5%BC%80%E5%8F%91/image-20190307200032836.png?lastModify=1551962708class Main { constructor() { //设置子域 Laya.isWXOpenDataContext = true; Laya.isWXPosMsg = true; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.sca...
来源: Laya_社区 发布时间: 20190307
...弹出一个对话框,对话框里面展示 Hello World!export default class HelloWorld extends Laya.Scene { constructor() { super(); HelloWorld.instance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); /...
来源: Laya_社区 发布时间: 20190117
... Only exported Menu Globals "laya/d3/resource/RenderTexture" RenderTexture Class RenderTexture Hierarchy BaseTexture RenderTexture RenderTextureCube WebXRRenderTexture MulSampleRenderTexture Implements IRenderTarget Index Constructors constructor Properties _generateMipmap _inPool _isCameraTarget _r...
来源: Laya3.0_api 发布时间: 20231102
...o.as编写代码如下: ```java package { import laya.utils.Stat; public class Demo { public function Demo() { //初始化舞台 Laya.init(1334,750); //调用性能统计面板方法,(0,0)为面板位置坐标 Stat.show(0,0); } } } ``` ### 2、FPS相关的介绍 ### 2.1 FPS概述 FPS是每秒传...
来源: Laya2.0_文档 发布时间: 20210714