大约有 3,003 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)
Laya_社区(1068) Laya3.0_api(668) Laya2.0_api(366) laya_api(298) Laya2.0_文档(230) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(109)
...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
...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
...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
...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
...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
... 请问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
...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
...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
...响事件的触发这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console....
来源: Laya2.0_文档 发布时间: 20210715
...性赋值后,在另外个函数中调用会自动变成undefined public class MainPageController extends Scene { public var camera:Camera; public function MainPageController(){ super(); ...
来源: Laya_社区 发布时间: 20190328