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

大约有 3,008 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0056 秒)

2201. swf预加载问题 [ 50%]

...EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public class BeforLoader extends EventDispatcher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; private const ADDONE:String = "bingan/AddOne.swf"; private const BG:String = "bingan/bg.swf"; private const CDOWN...

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

2202. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 50%]

...ton注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 class Item extends Laya.Box{ public static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Text; public skin_btn_use:Laya...

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

2203. 新人求教!!! [ 50%]

新人求教!!! // 程序入口 class Main{ //需要切换的图片资源路径 private monkey1:string = "res/img/monkey1.png"; private monkey2:string = "res/img/monkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() {       //初始化引擎   ...

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

2204. 射线BUG [ 50%]

...mera.addComponent(CameraMoveScript); this.camera.clearColor = null; } Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(state); //从屏幕空间生成射线 this.point.eleme...

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

2205. shader 问题[关闭] [ 50%]

...size.y)*2.0, pos.z, 1.0);       v_color = color;v_texcoord = texcoord;}`class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _...

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

2206. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 50%]

...,如果是独立小模块,功能单一,建议用脚本方 */ public class GameUI extends TestSceneUI { public function GameUI():void { super(); //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete...

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

2207. 分享: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

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

2209. 物理射线检测(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

2210. 动画状态脚本(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