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

大约有 1,229 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

661. 缓动-简单的Tween [ 62%]

...wser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Tween_SimpleSample { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_...

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

662. 文本-位图字体 [ 62%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Text_BitmapFont { private fontName: string = "diyFont"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDL...

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

663. 文本-复杂的文本样式 [ 62%]

...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_ComplexStyle { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_C...

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

664. laya.d3.component.animator.AnimatorControllerLayer_API3.0 [ 62%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/Animator/AnimatorControllerLayer" AnimatorControllerLayer Class AnimatorControllerLayer AnimatorControllerLayer 类用于创建动画控制器层。 Hierarchy AnimatorControllerLayer I...

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

665. laya.d3.graphics.vertex.VertexMesh_API3.0 [ 62%]

...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/graphics/Vertex/VertexMesh" VertexMesh Class VertexMesh ... author ... Hierarchy VertexMesh Index Properties MESH_BLENDINDICES0 MESH_BLENDWEIGHT0 MESH_COLOR0 MESH_CUSTOME0 MESH_CUSTOME1 MESH_CUS...

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

666. laya.d3.core.render.BloomEffect_API3.0 [ 62%]

...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/render/BloomEffect" BloomEffect Class BloomEffect BloomEffect 类用于创建泛光效果。 Hierarchy PostProcessEffect BloomEffect Index Constructors constructor Properties clamp color di...

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

667. laya.utils.Timer_API3.0 [ 62%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Timer" Timer Class Timer Timer 是时钟管理类。它是一个单例,不要手动实例化此类,应该通过 Laya.timer 访问。 Hierarchy Timer Index Constructors constructor Propert...

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

668. JS里面定义一个函数,无法使用Laya.Handler.creat回调 [ 62%]

...Handler.create时候提示onTxtLoad is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } ...

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

669. 动画节点 · LayaAir3.0文档 · LAYABOX [ 62%]

...,示例代码如下: const { regClass, property } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此...

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

670. 编辑模式下的赋值不保留? [ 62%]

...露姓名的无头像者 • 2018-10-25 14:56 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个b...

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