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

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

581. 性能测试-虫子(慎入) [ 45%]

... wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } })();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_Magg...

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

582. 滤镜-发光滤镜 [ 45%]

...合为发光滤镜 this.ape.filters = [glowFilter]; } } new Filters_Glow();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import GlowFilter = Laya.GlowFilter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL...

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

583. Sprite-显示图片 [ 45%]

....graphics.drawTexture(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 { ...

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

584. [LayaAir3]3.3.1+3.3.2 多个后期处理增删会导致webgl报错 [ 45%]

...Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined module写法的模块无法使用,其他地方使用会报错 导微信小程序报错window.focus is not a function 一个时间轴动画里创建的多个动画,怎么分别调用?如图 高频使用遮罩 导致手机...

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

585. 2.0 Beta3版本中,runtime脚本的的问题 [ 45%]

...View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class BGPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("BGPage"); } } export class MonkeyPageUI extends View { constructor(){ super()} createChi...

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

586. UI-ProgressBar [ 45%]

...(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不...

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

587. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 45%]

...设置ComboBox,创建出符合自己需要的下拉框。 ```javascript module laya { import Stage = Laya.Stage; import ComboBox = Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "res/ui/combobox.png"; constructor() { // ...

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

588. 文本-复杂的文本样式 [ 45%]

....y = (Laya.stage.height - txt.textHeight) / 2; } } new Text_ComplexStyle();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_ComplexStyle { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(...

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

589. UI-ComboBox [ 45%]

...) { console.log("选中了: " + cb.selectedLabel); } } new UI_ComboBox();module laya { import Stage = Laya.Stage; import ComboBox = Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "res/ui/combobox.png"; constructor() { // ...

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

590. Sprite-容器 [ 45%]

...ate); } animate() { this.apesCon.rotation += 1; } } new Sprite_Container();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_Container { // 该容器用于装载4张猩猩图...

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