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

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

221. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...nst { regClass, property } = Laya; @regClass() export class UI_ColorPicker extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { La...

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

222. FontChip不能显示 [ 56%]

...ue = "a1326";//显示"a1326"文字      */     public class FontClip extends Clip {         /**数值*/         protected var _valueArr:String;         /**文字内容数组**/         protected var _indexMap:Object;         /**位图字体内容**/         ...

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

223. 自定义组件用的layaeditor.d.zip报错 [ 56%]

...上论坛求助了。 比如这么一个报错的地方: class Component extends laya.ui.Component implements laya.ui.IComponent { _getBoundPointsM(ifRotate?: boolean): Array<any>; disableLayout: boolean; protected resetLayoutX(): void; protected resetLayoutY(): void; } 类laya.ui.Component ...

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

224. spine动画放大后,遮罩显示不正常 [ 56%]

...代码和附件DEMO中的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景...

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

225. 异步加载一个UI对象时的问题 [ 56%]

...此我将load方法放到了createChildren函数里面去。 class MyView extends ui.view.MyViewUI { constructor() { super(); } createChildren():void { super.createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.AT...

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

226. 提示错误在laya.core.js里 [ 56%]

...是要把unity场景导入到laya2.6. export default class SceneLoad extends Laya.Script{     constructor(){         super();     }     onAwake(){         Laya.Scene3D.load("res/LayaScene_demo/Android/demo.ls",Laya.Handler.create(this,function(scene){        ...

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

227. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 56%]

...名。 ```typescript import laya.d3.component.Script3D; class SceneScript extends Script3D { //用于表现的方法 public var showMsgFunc:Function; public function SceneScript() { } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 public function ShowMsg():vo...

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

228. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(5, 5); //放...

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

229. 动画状态脚本(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 56%]

...ateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { constructor() { super(); this._text = null; } get text() { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter() { console.log("...

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

230. Spine动画烘焙插件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

... const { regClass, property } = Laya; @regClass() export class SpineTest extends Laya.Script { //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //加载预制体文件 Laya.loader.load("resources/spine3.8/boy/spineboy-pma_bake.lh").then((res) => { // 创建预制...

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