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

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

241. Test类继承 Laya.Sprite 然后重写render方法,如何将一个RGBA图像绘制到画布里面 [ 58%]

...何将一个RGBA图像绘制到画布里面 代码如如下: class Test extends Laya.Sprite{ render(context: laya.renders.RenderContext, x: number, y: number){ context.putImageData(null,100,100); } } 但是 putImageData 方法不存在,要怎么样才能使用putImageData 有何办法? 2017-02-16 ...

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

242. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 58%]

...t { ui } from '../ui/layaMaxUI'; /**主界面 */ export default class Main extends ui.mainUI { /**地图链接 */ MAP_URL:string = 'res/tiled/map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private on...

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

243. 版本管理swf找同名的Json文件发现找不到 [ 57%]

...06db1ff.json MovieClip类是找Map192622077fd.json export class MMovieClip extends Laya.MovieClip{         constructor(){             super();         }         //初始化预加载数据         public m_initData(url:string,atlas:boolean,atlasPath?:string...

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

244. LAYA的AS3项目碰见个问题,求解 [ 57%]

...itorInfo="compId=2"/> </View>   mytexts.as: public class myTexts extends myTextsUI        public function myTexts()         {             super();         }         override protected function initialize():void         {             super.initi...

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

245. PBR标准材质实时阴影渲染问题 [ 57%]

...om "./ModelViewer"; import Scene = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHENG3D/Conventional/PUCHENG3D.ls") as Laya.Scene3D; Laya.stage.addChildAt(scene_360, 0); var camer...

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

246. swf预加载问题 [ 57%]

...mport 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 CDOWNBIN:String = "bing...

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

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

...件不响应 是怎么回事呢 ?可以帮帮我解答下吗 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.Image; priv...

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

248. shader 问题[关闭] [ 57%]

..., 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, _vlen, 2 * Laya.CON...

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

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

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

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

250. UNITY导出的模型旋转不了 [ 57%]

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