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

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

91. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 88%]

...修改自身材质: ...... //添加3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new ...

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

92. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 87%]

...件的触发这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { //用于表现的方法 public showMsgFunc; constructor(){ super(); } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg...

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

93. 3D场景-地形场景 [ 87%]

...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Scenes").getChildByName("Ma...

来源: Laya_示例 发布时间: 20240930

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

...下射线的使用。 在LayaAir3D中实现射线检测的核心是使用Scene3D场景属性中的**PhysicsSimulation物理模拟器**。详情可以查看[Api地址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=3D&category=BulletPhysics&class=laya.d3.physics.Physic...

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

95. 为unity导出的场景种的模型添加碰撞器失败 [ 87%]

...yCar的模型后,为该模型添加碰撞器失败。 onComplete(){ this.scene1 = Laya.loader.getRes("3D/LayaScene_map/Conventional/map.ls"); Laya.stage.addChild(this.scene1); this.myCar = this.scene1.getChildByName("myCar"); var scale = new Laya.Vector3(2, 2, 2); this.myCar.transform.localScale =...

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

96. spine动画放大后,遮罩显示不正常 [ 87%]

...,右边未设置遮罩 详细设置见下图代码和附件DEMO中的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseMan...

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

97. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 87%]

..._initView():void { let sprite:Sprite = new Sprite(); sprite.loadImage("res/scene/1001/layer1/qiang.jpg", 100, 100, 100, 100); this.addChild(sprite); sprite = new Sprite(); sprite.graphics.drawCircle(100, 500, 50, "#0000ff"); //sprite.graphics.scale(2, 2); this.addChild(sprite); sprite = new Sprite()...

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

98. 物理射线检测(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 87%]

...下射线的使用。 在LayaAir3D中实现射线检测的核心是使用Scene3D场景属性中的**PhysicsSimulation物理模拟器**。详情可以查看[Api地址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=3D&category=BulletPhysics&class=laya.d3.physics.Physic...

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

99. HIERARCHY_LOADED函数不回调 [ 87%]

HIERARCHY_LOADED函数不回调 this.sceneP = Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3...

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

100. PBRStandardMaterial材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 86%]

....PBRStandardMaterial(); //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Texture2D.load('res/threeDimen/sc...

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