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

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

2391. Uncaught TypeError: Cannot read property 'regClass' of undefined [ 48%]

Uncaught TypeError: Cannot read property 'regClass' of undefined 1.使用2.12.0版本创建typescript的2D示例项目 2.运行,可以正常运行 3.按F9,默认编程语言是没有任何选择的,然后切换编程语言,选择TypeScript,点击确定 4.运行,出现错误Uncaught Type...

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

2392. laya.d3.component.volume.batchvolume.StatiVertexMergeBatchRender_API3.0 [ 48%]

...olume/BatchVolume/StatiVertexMergeBatchRender" StatiVertexMergeBatchRender Class StatiVertexMergeBatchRender Hierarchy BatchRender StatiVertexMergeBatchRender Implements IBoundsCell Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge A...

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

2393. 碰撞器过滤(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 48%]

...yabox.com/api2/Chinese/index.html?version=2.9.0beta&type=3D&category=Utils&class=laya.d3.utils.Physics3DUtils),一个物体同一时间所属碰撞分组是唯一的。 关于能产生碰撞的碰撞组这个属性,如果只能与单个组碰撞那么使用Physics3DUtils的分组赋值就行。 ...

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

2394. prop 识别不到 [ 48%]

...de报未定义,IDE F8编译时也不通过   代码: export default class Index extends Laya.Script {     /* @prop {name: speed, tips: "速度", type: Number, default: 10} */      constructor() {         super();     }      onAwake() {        ...

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

2395. 从Unity中编辑并导出摄像机(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 48%]

...转、设置天空盒、添加脚本等操作。 ​ 代码如下: ```js class LayaAir3D { constructor() { //初始化引擎 Laya3D.init(1000, 500,true); //适配模式 Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); //预...

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

2396. JSONP跨域读取数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 48%]

...代码如下所示: ```java package { import laya.utils.Browser; public class LayaSample { public function LayaSample() { Laya.init(100,100); var script:* = Browser.createElement("script"); Browser.document.body.appendChild(script); script.src = "http://localhost:9090/?a=1"; } public static functi...

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

2397. laya.d3.core.light.SpotLight [ 48%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames SpotLightProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class SpotLightInheritanceSpotLight LightSprite Sprite3D ComponentNode Node EventDispatcher Object SpotLight 类用于创建聚光...

来源: laya_api 发布时间: 20170929

2398. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 47%]

....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.png"; t...

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

2399. 关于项目分包的问题?? [ 47%]

...[SWF(width=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模式 IFlash.setBgcolor("#FFFFFF"); //背景色 IFlash.showInfo(...

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

2400. 重复背景,全方向地图拖动Demo [ 47%]

...o UI创建4个image  var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg...

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