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

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

2561. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 45%]

...9-12-16 11:24 浏览: 2130 关注: 2 人 执迷不悟 • 2019-12-16 11:20 class AnimatorDemo { private scene:Laya.Scene3D; resource constructor() { //初始化引擎 Laya3D.init(0, 0); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开...

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

2562. 鼠标交互-键盘交互 [ 45%]

...a.events.Event; import laya.utils.Browser; import laya.webgl.WebGL; public class Interaction_Keyboard { private var logger:Text; private var keyDownList:Array; public function Interaction_Keyboard() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebG...

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

2563. 分享-js资源进度加载 [ 45%]

分享-js资源进度加载 var ui_Socket: Socket; // 程序入口 class GameMain { //进度UI Progress: Progress; Socket: Socket; arr = [ { url: "images/1.jpg", type: Laya.Loader.IMAGE } , { url: "images/2.jpg", type: Laya.Loader.IMAGE } , { url: "images/3.jpg", type: Laya.Loader.IMAGE } , { url: ...

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

2564. 2.0版本可用的CameraMoveScript.ts [ 45%]

....0,跟示例里效果一样的文件:   /** * ... * @author */ export class CameraMoveScript extends Laya.Script {      /** @private */     protected _tempVector3: Laya.Vector3 = new Laya.Vector3();     protected lastMouseX: number;     protected lastMouseY: number;     pro...

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

2565. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 45%]

... from "../Const"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;     /** 角色 */     private character: Laya.Sprite     /** 角色刚体*/     private rig: Laya.RigidBody     /** 医疗包*/     private addhp: Laya.Sp...

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

2566. laya.utils.PerfHUD [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames PerfHUDProperties | Methods | Events Packagelaya.utilsClasspublic class PerfHUDInheritancePerfHUD Sprite Node EventDispatcher ObjectPublic Properties Hide Inherited Public Properties Show Inherited Public Properties Pr...

来源: Laya2.0_api 发布时间: 20190513

2567. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 45%]

...以在舞台上显示多个动画。 代码示例: ```typescript export class SpineBinary { private aniPath = "res/bone/spineboy-pma.skel"; private templet:Laya.SpineTempletBinary; private skeleton:Laya.SpineSkeleton; private index: number = -1; constructor() { Laya.init(Laya.Browser.width, Laya.B...

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

2568. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 45%]

....Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.cl...

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

2569. laya.d3.core.MeshTerrainSprite3D [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames MeshTerrainSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class MeshTerrainSprite3DInheritanceMeshTerrainSprite3D MeshSprite3D RenderableSprite3D Sprite3D ComponentNode Node EventDispa...

来源: laya_api 发布时间: 20170929

2570. laya.ui.ScaleBox [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ScaleBoxProperties | Methods | Events Packagelaya.uiClasspublic class ScaleBoxInheritanceScaleBox Box UIComponent Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保...

来源: Laya2.0_api 发布时间: 20190513