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

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

201. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 60%]

...这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); th...

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

202. 性能测试-卡通人物2 [ 60%]

... % 60 === 0) { this.text.text = Stat.FPS.toString(); } } } class Character extends Sprite { public static WIDTH: number = 110; public static HEIGHT: number = 110; private speed: number = 5; private bloodBar: Sprite; private animation: Animation; private nameLabel: Text; constructor(images: Array) { ...

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

203. 求助高手请进,关于场景导入的问题~ [ 60%]

... = new GameScene(); Laya.stage.addChild(scene1);   public class GameScene extends Scene {    public function GameScene()    {       Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler));    }          private function completeHandler():void{     ...

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

204. 取色器组件 · LayaAir3.0文档 · LAYABOX [ 60%]

...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_文档 发布时间: 20231129

205. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 60%]

...这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { //用于表现的方法 public showMsgFunc; constructor(){ super(); } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.sho...

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

206. 预制体模块 · LayaAir3.0文档 · LAYABOX [ 60%]

...: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (r...

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

207. list里面可以加入多个view吗? [ 60%]

...mport laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var img:Image; private var label:Label; public function Item() { this.size(WID,HEI); img=new Image(); addChild(img); label=new Label(); label...

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

208. List组件拖动浏览时item会出现重叠的现象 [ 59%]

... laya.ui.Image; import Label = Laya.Label; export class ListDataSourceItem extends Box { public static WID: number = 200; public static HEI: number = 20; // private _img: Image = null; private _lb:Label = null; constructor() { super(); this._lb = new Label(); this._lb.size(ListDataSourceItem.WID, Li...

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

209. 多重遮罩显示异常 [ 59%]

...一部分或者消失,测试代码如下 export default class ClipView extends Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.pan...

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

210. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 59%]

... }   import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.create(this, this.showEffect); this.closeEffect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLICK, this, this.cl...

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