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

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

881. 在开启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

882. 鼠标交互-双指旋转(多点触控) [ 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_示例 发布时间: 20250311

883. 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

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

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

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

885. Spine骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...组件。 代码示例: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite }) public sprite: Laya.Sprite; private spine: Laya.Spine2DRenderNode; private index: number = -1; //组件被激活后执行,此时所有节点和...

来源: Laya3.0_文档 发布时间: 20250310

886. 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

887. 鼠标交互-滑动 [ 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_示例 发布时间: 20250311

888. ReferenceError: Loading_fly is not defined [ 54%]

...D.runtime.js后报enum_btConstraintParams_BT_CONSTRAINT_ERP is not defined exports is not defined (js篇) layaair-cmd 编译提示 ReferenceError: primordials is not defined window is not defined LayaNative 预览在Android底下报错 ConchShader is not defined 打包出来 code.js报错 laya is no...

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

889. mac平台1.7.20.2beta版本下compileTargets设置不生效 [ 54%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 如何设置Sprite的宽高和点击区域? 问题状态 最新活动: 2018-10-12 11:07 浏览: 2213 ...

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

890. laya.d3.core.particleshuriken.module.GradientAngularVelocity_API3.0 [ 54%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/particleShuriKen/module/GradientAngularVelocity" GradientAngularVelocity Class GradientAngularVelocity GradientRotation 类用于创建渐变角速度。 Hierarchy GradientAngularVelocity I...

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