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

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

891. laya.physics.Physics_API3.0 [ 54%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/Physics" Physics Class Physics 2D物理引擎,使用Box2d驱动 Hierarchy EventDispatcher Physics Index Constructors constructor Properties box2d positionIterations velocityIterations wor...

来源: Laya3.0_api 发布时间: 20231115

892. 2D物理-桥 [ 54%]

... import { WebGL } from "laya/webgl/WebGL"; import { Main } from "../Main"; export class Physics_Physics_Bridge { Main: typeof Main = null; private ecount = 30; private label: Label; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); ...

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

893. 区块地图-滚动地图 [ 54%]

...andler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class TiledMap_SimpleDemo { private tiledMap: TiledMap; private mLastMouseX: number = 0; private mLastMouseY: number = 0; private mX: number = 0; private mY: number = 0; constructor() { // 不支持WebGL时自动切换...

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

894. prop 识别不到 [ 54%]

...到了,但vscode报未定义,IDE F8编译时也不通过   代码: export default class Index extends Laya.Script {     /* @prop {name: speed, tips: "速度", type: Number, default: 10} */      constructor() {         super();     }      onAwake() {...

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

895. laya.d3.component.animator.AnimatorState_API3.0 [ 54%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/Animator/AnimatorState" AnimatorState Class AnimatorState AnimatorState 类用于创建动作状态。 Hierarchy EventDispatcher AnimatorState Implements IClone Index Constructors cons...

来源: Laya3.0_api 发布时间: 20231115

896. 鼠标交互-双指旋转(多点触控) [ 54%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadian: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = S...

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

897. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 54%]

... = Laya.Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test....

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

898. laya.d3.component.volume.Volume_API3.0 [ 54%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/Volume/Volume" Volume Class Volume Hierarchy Component Volume ReflectionProbe VolumetricGI StaticBatchVolume Index Constructors constructor Properties _extra _singleton owner runInEdit...

来源: Laya3.0_api 发布时间: 20231115

899. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 54%]

...63538965101975.png) ​ 6.设置导出样式,选择菜单栏的 Options->Export Options ,打开Export Options 设置导出选项,设置完毕后点击OK按钮保存。 ​ Padding:文字的内边框,或者理解为文字的周边留空要多大。做后期样式时这个属性很重要,...

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

900. 鼠标交互-滑动 [ 54%]

...wser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Swipe { //swipe滚动范围 private TrackLength: number = 200; //触发swipe的拖动距离 private TOGGLE_DIST: number = this.TrackLength / 2; private buttonPosition: number; private beginPosition: n...

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