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

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

221. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 55%]

...可直接查看API: [https://layaair.ldc.layabox.com/api/?category=Core&class=laya.utils.Tween](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=Utils&class=laya.utils.Tween) `Ease`类的API中对缓动函数进行了基础的介绍,点击链接可...

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

222. 没有人尝试使用3d物理引擎么 [ 55%]

...Dimen.common.SpriteMoveScript; import threeDimen.common.SpriteStat; public class LayaAir3D { private var box:MeshSprite3D; private var sphereBody:Object; private var world:Object; private var CANNON:Object; public function LayaAir3D() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya....

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

223. 如何实现3d遮罩效果? [ 54%]

... import laya.utils.Stat; import threeDimen.common.CameraMoveScript; public class D3Base_TargetTexture { private var skinMesh:MeshSprite3D; private var skinAni:SkinAnimations; private var mesh0:MeshSprite3D; private var mesh1:MeshSprite3D; private var camera2:Camera; private var x:Number = 0; private...

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

224. 分享,扩展Laya.Text组件实现简单的富文本 [ 54%]

...类的排版和渲染函数以实现自定义的富文本类型) */ export class Label extends Laya.Text { constructor() { super(); } private typeList = {}; //取出文本里面的关键字 private typeIndexList = ; //关键字所在文本的位置 private typeLines = ; //利用关键字重新划分...

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

225. 鼠标交互-拖动 [ 54%]

...开发更高效。const ApePath = "res/apes/monkey2.png"; let dragRegion; class Interaction_Drag { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, ...

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

226. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 54%]

....utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Br...

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

227. drawToCanvas绘制显示不全 [ 54%]

...链接 提交 3 个回复 之肖 赞同来自: 测试代码 export default class TestView extends TestViewUI {     constructor() {         super();     }     onAwake() {         this.nativeImg = new Image();         let style = this.nativeImg.style;         style.position = 'ab...

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

228. Laya 绑定显示内容到骨骼动画 [ 54%]

...加的内容:   1. 可绑定内容的骨骼动画   export default class BindSkeleton extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.i...

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

229. 求助关于TiledMap的版本问题 [ 54%]

....utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaSample { private var tMap:TiledMap; public function LayaSample() { //初始化引擎 Laya.init(1136, 640,WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Rect...

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

230. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 54%]

... import WebGL = Laya.WebGL; import Rectangle = laya.maths.Rectangle export class Interaction_Scale { constructor() { Laya3D.init(640, 1136, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; // Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = this.s...

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