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

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

171. 缓动-简单的Tween [ 73%]

...wser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Tween_SimpleSample { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_...

来源: Laya2.0_示例 发布时间: 20251130

172. 输入设备-摇一摇 [ 73%]

... = Laya.Browser; import Handler = Laya.Handler; import Event = Laya.Event; export class InputDevice_Shake { private picW:number = 484; private picH:number = 484; private console:Text; private shakeCount:number = 0; constructor() { Laya.init(this.picW, Browser.height * this.picW / Browser.width); Lay...

来源: Laya2.0_示例 发布时间: 20251130

173. Sprite-切换纹理 [ 73%]

...r = Laya.Handler; import Browser= Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_SwitchTexture { private texture1: string = "../../res/apes/monkey2.png"; private texture2: string = "../../res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不...

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

174. 骨骼动画-多纹理 [ 73%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class MultiTexture { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skel...

来源: Laya2.0_示例 发布时间: 20251130

175. 加载-单一类型资源加载 [ 73%]

...Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_SingleType { constructor() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, this.onAssetLoaded1)); // 加载多张png类型资源 La...

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

176. UI-Dialog [ 73%]

...ge = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Dialog { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: Array; constructor() { // 不支...

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

177. UI-Dialog [ 73%]

...ge = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Dialog { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: Array; constructor() { // 不支...

来源: Laya2.0_示例 发布时间: 20251130

178. 骨骼动画-藤蔓 [ 73%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Skeleton_SpineVine { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmatur...

来源: Laya2.0_示例 发布时间: 20251130

179. 骨骼动画-橡胶人 [ 73%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Skeleton_SpineStretchyman { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private m...

来源: Laya2.0_示例 发布时间: 20251130

180. Unity3d导出模型时 报错: LayaAir3D UnityPlugin: Resources/unity_builtin_extra can't export [ 73%]

...时 报错: LayaAir3D UnityPlugin: Resources/unity_builtin_extra can't export 0.Unity版本:Unity2018.2.18f11.插件: LayaAirUnityPlugin_beta.unitypackage (2019年11月1日从官网下载)  2.步骤:导入插件,运行LayaAir3D->Shortcuts->Switch to LayaAir3D shader,设置导出路...

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