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

大约有 2,685 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0073 秒)

2621. 动画节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...lass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次...

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

2622. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...regClass() export class DayNight extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.DirectionLight2D; private dayTime: number = 0; private dayDuration: number = 24; // 一个完整周期的秒数 private displayText: Laya.Text; // 文本显示当前时间 onAwake(): void { thi...

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

2623. laya.d3.core.light.SpotLight_API3.0 [ 45%]

...ass SpotLight deprecated SpotLight 类用于创建聚光。 Hierarchy LightSprite SpotLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hideFlags id intensity is3D layer lightWor...

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

2624. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

... export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...

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

2625. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 45%]

... export default class iceMonster extends Laya.Script { declare owner: Laya.Sprite; /** 用于兜底的 Animator2D(可选) */ private _animator: Laya.Animator2D; /** 承载 .mc 的动画播放器 */ private iceMonsterAni: Laya.Animation; /** 资源前缀 */ private readonly ANIMATION_PATH: string...

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

2626. 使用滤镜报错 [ 45%]

...FS_Project/trunk/LAYA/PFX12/H5_SHZ/bin/libs/laya.core.js:1849:21) at RenderSprite3D.__proto._graphics (file:///E:/FS_Project/trunk/LAYA/PFX12/H5_SHZ/bin/libs/laya.core.js:5125:41) at RenderSprite3D.Filter._filter [as _fun] (file:///E:/FS_Project/trunk/LAYA/PFX12/H5_SHZ/bin/libs/laya.core.js:20771:17...

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

2627. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 45%]

...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 微信小游戏:HTMLDivElement的使用 LayaAirIDE下如何使用mask? 微信小游戏如何使用ttf字体? 编译调试启动chrome出现错...

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

2628. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加到舞台 Laya.stage....

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

2629. laya.d3.core.light.DirectionLight_API3.0 [ 45%]

...Light deprecated DirectionLight 类用于创建平行光。 Hierarchy LightSprite DirectionLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hideFlags id intensity is3D layer lig...

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

2630. oppo小游戏修改逻辑发布不生效,且包体包含资源太大 [ 45%]

...片 执行代码说加载不出来资源 这个是怎么回事? new Laya.Sprite();绘制图形以后,怎么删除释放资源? LayaAirIDE1.4版本里用TS引擎库使用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 用Mac下Unity5.6.2f1导出的模...

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