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

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

2221. 分享:LayaAir下如何获取图集下的小图资源? [ 50%]

...et.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private func...

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

2222. UNITY导出的模型旋转不了 [ 50%]

...ion(){ //obj.transform.rotate(vect,false,false); //}); })); })); })(this); class BoxControlScript extends Laya.Script3D { constructor() { super(); this.obj = null; this.rotation = new Laya.Vector3(0, 1, 0); } /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完...

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

2223. 物理射线检测(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 50%]

...m/api2/Chinese/index.html?version=2.9.0beta&type=3D&category=BulletPhysics&class=laya.d3.physics.PhysicsSimulation)。射线检测使用的接口有4个,分为两类。`raycastFromTo`,`raycastAllFromTo`一类,`rayCast`,`rayCastAll`一类。我们将前面2个成为A类,后面为B类,我...

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

2224. 动画状态脚本(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 50%]

...port laya.display.Text; //继承自AnimatorStateScript(动画状态脚本) class AnimatorStateScriptTest extends AnimatorStateScript { private var _text:Text = null; public function get text():Text { return _text; } public function set text(value:Text):int { _text = value; } public function Animator...

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

2225. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 50%]

...了更新物理根节点去做相机跟踪 代码如下: export default class test extends Laya.Script {         strWorldRoot:Laya.Sprite;     constructor() { super(); }     cameraPlayerOffset:Laya.Point=new Laya.Point(18,0);     cameraOffset:Laya.Point=new Laya.Point(180,570);     onE...

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

2226. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 50%]

... Loader = Laya.Loader; import SpineTemplet = Laya.SpineTemplet; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private skeleton: SpineSkeleton; private index: number = -1; public pageWidth: number; public pageHeight: number; onStart() { console.log("Game sta...

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

2227. 物理射线检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 50%]

...m/api2/Chinese/index.html?version=2.9.0beta&type=3D&category=BulletPhysics&class=laya.d3.physics.PhysicsSimulation)。射线检测使用的接口有4个,分为两类。`raycastFromTo`,`raycastAllFromTo`一类,`rayCast`,`rayCastAll`一类。我们将前面2个成为A类,后面为B类,我...

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

2228. laya.d3.core.material.ExtendTerrainMaterial [ 50%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ExtendTerrainMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class ExtendTerrainMaterialInheritanceExtendTerrainMaterial BaseMaterial laya.resource.Resource ... Public Properties Hide In...

来源: Laya2.0_api 发布时间: 20190513

2229. drawToCanvas绘制显示不全 [ 50%]

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

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

2230. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 50%]

...=MultiLight))的代码来做讲解: > 移动灯光脚本 ```typescript class LightMoveScript extends Script3D { //需要操作的光源数组 public var lights: Array = []; //光源对应的位置偏移数组 public var offsets: Array = []; //光源对应的移动半径数组 public var moveRang...

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