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

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

1981. 预制体模块 · LayaAir3文档 · LAYABOX [ 54%]

...itle预制体放到Box下 (动图3-5) 示例代码如下: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预...

来源: Laya3.0_文档 发布时间: 20241014

1982. 混合模式-Lighter [ 54%]

...Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class BlendMode_Lighter { // 一只凤凰的分辨率是550 * 400 private phoenixWidth: number = 550; private phoenixHeight: number = 400; private bgColorTweener: Tween = new Tween(); private gradientInterval: number = 2000; ...

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

1983. Sprite3D-Sprite3D变换 [ 54%]

...cale.z = Math.abs(scaleValue); layaMonkey3.transform.localScale = _scale; }class Sprite3DTransform { private layaMonkey1: Laya.Sprite3D; private layaMonkey2: Laya.Sprite3D; private layaMonkey3: Laya.Sprite3D; private _position: Laya.Vector3; private _rotate: Laya.Vector3; private _scale: Laya.Vector...

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

1984. 求助高手请进,关于场景导入的问题~ [ 54%]

...scene1:GameScene = new GameScene(); Laya.stage.addChild(scene1);   public class GameScene extends Scene {    public function GameScene()    {       Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler));    }          private function completeHandle...

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

1985. laya.d3.math.CollisionUtils_API3.0 [ 54%]

...ls Only exported Menu Globals "laya/d3/math/CollisionUtils" CollisionUtils Class CollisionUtils Collision 类用于检测碰撞。 Hierarchy CollisionUtils Index Constructors constructor Methods boxContainsBox boxContainsPoint boxContainsSphere closestPointBoxPoint closestPointPlanePoint closestPoin...

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

1986. alertexception info: [Typeerror: null is not object (evaluating this. vaoext createvertexarrayoes"] [ 54%]

... 请问object层中添加的sprite怎么添加点击事件 Warning!,this class[MiniAdpter] already exist: Object {init: } Cannot read property 'displayObject' of null 遍历子对象的时候多出两个null A B两物体触发时会报null 跳转场景后laya.core.js就报Cannot read property 'width...

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

1987. warning:Laya.timer.once This variable is not defined. [ 54%]

...ined. file:////Users/qykings/work/layaGame/src/view/game/logic/actors/actorClass/LocalPlayer.as (2000):warning:Laya.timer.once This variable is not defined.   更新到"1.7.16" mac layaAir 有这问题    win没有   好尴尬   2018-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

1988. 关于camera的四元素问题 [ 54%]

...02-25 19:44 https://layaair2.ldc2.layabox. ... 0beta*type=3D*category=Math*class=laya.d3.math.native.ConchQuaternion shiyang • 2021-02-26 09:25 连接有问题吧 shiyang • 2021-02-26 09:27 这个是native的四元素类,也没有看到有将左手坐标系四元素转换成右手坐标系四...

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

1989. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 54%]

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

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

1990. 为什么全局属性赋值后,在另外个函数中调用会自动变成undefined [ 54%]

...性赋值后,在另外个函数中调用会自动变成undefined public class MainPageController extends Scene {                  public var camera:Camera;                  public function MainPageController(){             super();            ...

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