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

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

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

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

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

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

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

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

23. 2.0版本可用的CameraMoveScript.ts [ 78%]

...一样的文件:   /** * ... * @author */ export class CameraMoveScript extends Laya.Script {      /** @private */     protected _tempVector3: Laya.Vector3 = new Laya.Vector3();     protected lastMouseX: number;     protected lastMouseY: number;     protected yawPitchRoll: La...

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

24. 分享个用美术资源做位图文本的方法。。。 [ 78%]

...eMain(); 运行效果基本上还行, /* * 位图字体; */ class BPFont extends Laya.Sprite{ // 文本内容 private _text: string; // json数据 private _jsonData: any; // 图片数据 private _imageData: Laya.Texture; // 文本字间距 private _padding: number = 0; // 所有元素; private c...

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

25. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 77%]

...理根节点去做相机跟踪 代码如下: export default class test extends Laya.Script {         strWorldRoot:Laya.Sprite;     constructor() { super(); }     cameraPlayerOffset:Laya.Point=new Laya.Point(18,0);     cameraOffset:Laya.Point=new Laya.Point(180,570);     onEnable(): voi...

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

26. 引擎 TiledMap 居然不支持图块翻转 [ 77%]

...onst TiledMapFlipConstHalf = TiledMapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {             super(...arguments);             this.relativeX = 0;             this.relativeY = 0;             this.isAloneObject = false;          ...

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

27. 版本管理swf找同名的Json文件发现找不到 [ 77%]

...06db1ff.json MovieClip类是找Map192622077fd.json export class MMovieClip extends Laya.MovieClip{         constructor(){             super();         }         //初始化预加载数据         public m_initData(url:string,atlas:boolean,atlasPath?:string...

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

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

... = 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

29. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 77%]

...现打字效果等  /**古文脚本 */ export default class TextAncient extends Laya.Script { /** @prop {name:text, tips:"显示文本", type:String, default:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, default:"#0000ff"}*/ ...

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

30. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 77%]

...t { ui } from '../ui/layaMaxUI'; /**主界面 */ export default class Main extends ui.mainUI { /**地图链接 */ MAP_URL:string = 'res/tiled/map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private on...

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