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

大约有 1,125 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)

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

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

812. LayaAir下如何分包? [ 59%]

... module.def 要这样写:  module:"../res/js/maingame" path:"modules\class\src"编译完成后,maingame.js 就不会被单独放置到 js目录下,而是放置到了 res/js 目录。     2017-07-31 0 0 分享 微博 QZONE 微信 sevennqi 赞同来自: 。。。。。。 2017-08-04 0 0 分...

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

813. laya.d3.core.light.DirectionLight_API3.0 [ 59%]

...y exported Menu Globals "laya/d3/core/light/DirectionLight" DirectionLight Class DirectionLight deprecated DirectionLight 类用于创建平行光。 Hierarchy LightSprite DirectionLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInH...

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

814. Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 [ 59%]

...理器,Laya.loader:加载管理器,使用时注意大小写。 */ //class Laya var ___Laya=(function(){ //function Laya(){} Laya.__init=function(_classs){} Laya.init=function(width,height,__plugins){} Laya.alertGlobalError=function(value){} Laya.enableDebugPanel=function(debugJsPath){} Laya.st...

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

815. 微信小游戏中不能加载proto文件 [ 59%]

...  at Function.eof (http://127.0.0.1:34822/game/code.js:52215:69)     at Class (http://127.0.0.1:34822/game/code.js:52729:37)     at Type.get (http://127.0.0.1:34822/game/code.js:57693:48)     at Type.create (http://127.0.0.1:34822/game/code.js:57856:20)     at Proto.EncodeMessage (http://12...

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

816. 动画-图集动画 [ 59%]

...a.Loader; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_Altas { private AniConfPath: string = "../../res/fighter/fighter.json"; constructor() { // 不支持eWebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV...

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

817. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 59%]

...p.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,Ba...

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

818. SCALE_FIXED_WIDTH适配屏幕的问题 [ 59%]

...Chrome/66.0.3359.126 MQQBrowser/6.2 T     代码如下,另附上demo  class Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.tit...

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

819. js调用android的java代码失败。NoSuchMethodException [ 59%]

...ethod {"v":"java.lang.NoSuchMethodException: demo.JSBridge.testString: [class java.lang.String]"} demo.JSBridge testString:   在js那边的代码 为: _doTestCallJava(){ let os = null let bridge = null if(typeof conchConfig != "undefined"){ os = conchConfig.getOS() } if (os == "Conch-ios")...

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

820. 在 tiledmap 插入一个精灵在上面 [ 59%]

...方的一个图层中。这个图层可以是对象层 也可以是格子 class GameInfo{ private tiledMap: Laya.TiledMap; private sp:Laya.Sprite;   constructor(){   console.info("start");   this.init(); } init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atla...

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