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

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

181. 鼠标交互-自定义事件 [ 80%]

...sp, { "rotation": newAngle }, 1000, Ease.elasticOut); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import Ease = Laya.Ease; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_CustomE...

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

182. PBR标准材质实时阴影渲染问题 [ 80%]

...R标准材质实时阴影渲染问题 先上unity和laya效果的对比图 import ModelViewer from "./ModelViewer"; import Scene = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHE...

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

183. Sprite-旋转缩放 [ 80%]

...h.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number ...

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

184. 性能测试-虫子(慎入) [ 80%]

....pos(x, y); } tick += 0.1; } } new PerformanceTest_Maggots();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class PerformanceTest_Maggots { private ...

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

185. 文本-位图字体 [ 80%]

....height - txt.height >> 1); Laya.stage.addChild(txt); } })();module laya { import BitmapFont = Laya.BitmapFont; import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Text_BitmapFont { private fontName...

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

186. UI-Image [ 80%]

...; dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } })();module laya { import Stage = Laya.Stage; import Image = Laya.Image; import WebGL = Laya.WebGL; export class UI_Image { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...

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

187. 文本-单行输入 [ 80%]

...utText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_InputSingleline { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.c...

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

188. 文本-字数限制 [ 80%]

...ntSize = 20; inputText.maxChars = 5; } } new Text_MaxChars();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_MaxChars { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWi...

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

189. Sprite-显示图片 [ 80%]

...Texture(monkey2, 100, 0); })); } } new Sprite_DisplayImage();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { constructor() ...

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

190. Web Storage数据存储(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 80%]

...简单的例子来看下它是如何使用的。 ```javascript package { import laya.net.LocalStorage; import laya.utils.Browser; public class LayaSample { public function LayaSample() { Laya.init(100,100); LocalStorage.setItem("key","hello"); LocalStorage.setItem("data","hello"); var data:Object = ...

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