大约有 2,121 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)
...= Laya.stage.height / 2; } } new SmartScale_Scale_SHOW_ALL();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#23...
来源: Laya2.0_示例 发布时间: 20251130
...s/monkey2.png"); // 使用资源 } } new Loader_SingleType();module laya { import Loader = 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/monkey...
来源: Laya2.0_示例 发布时间: 20251130
...题 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? unity导出粒子文件问题 加载到舞台的3D模型不显示贴图 (Laya3.0非常严重BUG) 任意模型,只要坐标值越大,模型扭曲变形越严重 从unity导出的场景透贴和模型...
来源: Laya_社区 发布时间: 20200619
...age.addChild(this.sprite); } } new TiledMap_IsometricWorld();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import Web...
来源: Laya2.0_示例 发布时间: 20251130
....y = Laya.stage.mouseY; }); } } new Sprite_MagnifyingGlass();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_MagnifyingGlass { private maskSp:Sprite; private bg2:Sprite;...
来源: Laya2.0_示例 发布时间: 20251130
...ature.play(mCurrIndex, false); } } new Skeleton_ChangeSkin();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class ChangeSkin { private mAniPath:string; ...
来源: Laya2.0_示例 发布时间: 20251130
...WERFUL HTML5 ENGINE ON FLASH TECHNICAL"; return text; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_AutoSize { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); ...
来源: Laya_示例 发布时间: 20251130
...的内容 arrayBuffer(下载.ttf文件后的二进制数据)package { import laya.display.Text; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",H...
来源: Laya_社区 发布时间: 20161219
...e_modules里的axios来封装 npm install axios完后 须要怎么弄才能import axios from "axios"; 附件 : --> 2020-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: https://www.tsl...
来源: Laya_社区 发布时间: 20200106
...d)) } function playEnd() { mLabelSprite.removeSelf(); } })();module laya { import EventData = Laya.EventData; import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Sprite = Laya.Sprite; import Event = Laya.Event; import Browser = Laya.Browser; import Handler = Laya.Handler; import S...
来源: Laya_示例 发布时间: 20251130