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

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

2531. UI-RadioGroup [ 45%]

....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_示例 发布时间: 20251219

2532. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 45%]

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

2533. layaNative测试运行原生app时,laya3D解析动画处报错 [ 45%]

...叫apploader.js的类中定义的apploader.js关于该类的定义如下 class conchFloatArrayKeyframe {     constructor() {         this._nativeObj = new _conchFloatArrayKeyframe();     }     set time(value) {         this._nativeObj.setTime(value);     }     get time()...

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

2534. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 45%]

...之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定...

来源: Laya2.0_文档 发布时间: 20210715

2535. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 45%]

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

2536. LayaBox HelloWorld实战 [ 45%]

...弹出一个对话框,对话框里面展示 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

2537. laya.d3.resource.RenderTexture_API3.0 [ 45%]

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

2538. 性能统计面板介绍(ActionScript-2D进阶篇(AS3)-性能优化) [ 45%]

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

2539. laya.d3.math.Vector3 [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Vector3Properties | Methods Packagelaya.d3.mathClasspublic class Vector3InheritanceVector3 ObjectImplements laya.d3.core.IClone Vector3 类用于创建三维向量。 Public Properties PropertyDefined By  x : NumberX...

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

2540. ScrollRect设置会引起其他的UI资源无法正在显示 [ 45%]

...ort laya.ui.Image; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,...

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