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

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

2501. 微信小游戏Worker使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 46%]

...路径后通过wx.createWorker方法来创建Worker,在适配库中使用class MiniWorkerLoader接口来自定义实现微信小游戏的Worker内容,从而尽可能将Worker的使用接入引擎的统一处理流程,在项目层减少各平台Worker的适配,并且可以扩展到其他小...

来源: Laya3.0_文档 发布时间: 20251010

2502. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 46%]

...p.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,Ba...

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

2503. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 46%]

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

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

2504. 分享:Panel下动态修改子容器宽高并刷新显示! [ 46%]

...aya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height); //ui组件,除了image和clip外,其他皮肤均需要预加载资源,此处添...

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

2505. laya.resource.Texture2D_API3.0 [ 46%]

...d Externals Only exported Menu Globals "laya/resource/Texture2D" Texture2D Class Texture2D Texture2D 类用于生成2D纹理。 Hierarchy BaseTexture Texture2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG TEXTURE2D blackTexture errorTexture grayTexture ...

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

2506. laya.d3.core.MeshSprite3D [ 46%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames MeshSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class MeshSprite3DInheritanceMeshSprite3D RenderableSprite3D Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses MeshTerrain...

来源: laya_api 发布时间: 20170929

2507. laya.utils.Stat_API3.0 [ 46%]

... All Inherited Externals Only exported Menu Globals "laya/utils/Stat" Stat Class Stat Stat 是一个性能统计面板,可以实时更新相关的性能参数。 参与统计的性能参数如下(所有参数都是每大约1秒进行更新): FPS(WebGL):WebGL 模式下的帧频,也就是...

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

2508. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 45%]

...API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=3D&class=laya.d3.core.light.LightSprite)。 除此之外,还要需要在模型上设置投影属性。 **receiveShadow:**是否接受阴影,当模型此属性为true时,计算出的阴影会在此模型上显示出来。...

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

2509. IOS的safari浏览器打开h5项目demo,游戏场景偏移(附件有完整demo) [ 45%]

...laya.display.Stage; import laya.display.Text; import laya.ui.Image; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#235615"; //设置适配模式 Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...

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

2510. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 45%]

...?   随便弄一个窗口,都是这样,代码如下 export default class SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width...

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