大约有 1,732 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0057 秒)
Laya_社区(615) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya2.0_api(67) laya_api(64) Laya3.0_文档(62)
...ewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary&...
来源: Laya_社区 发布时间: 20190224
...laya.ui.View; import laya.utils.Browser; import laya.utils.Handler; public class LayaAirDemo { private var list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loade...
来源: Laya_社区 发布时间: 20170626
...on, _quaternion, _position); pointLight.transform.position = _position; });class PointLightDemo { private scene: Laya.Scene; private _position: Laya.Vector3; private _quaternion: Laya.Quaternion; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screen...
来源: Laya_示例 发布时间: 20241002
...wHeight = Browser.height, lasers = [], tick = 0, frequency = 80, type = 0; class PIXI_Example_23 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(viewWidth, viewHeight, WebGL); Laya.stage.ali...
来源: Laya2.0_示例 发布时间: 20241002
... exported Menu Globals "laya/components/Animation2DEvent" Animation2DEvent Class Animation2DEvent Animation2DEvent 类用于实现动画事件。 Hierarchy Animation2DEvent Index Constructors constructor Properties eventName params time Constructors constructor new Animation2DEvent(): Animation2DEve...
来源: Laya3.0_api 发布时间: 20231115
...ya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stag...
来源: Laya_示例 发布时间: 20241002
...nent/Volume/reflectionProbe/ReflectionProbeManager" ReflectionProbeManager Class ReflectionProbeManager ReflectionProbeManager 类用于反射探针管理 Hierarchy ReflectionProbeManager Implements IVolumeManager Index Constructors constructor Accessors sceneReflectionProbe Methods _updateRenderObj...
来源: Laya3.0_api 发布时间: 20231115
...rted Menu Globals "laya/d3/graphics/StaticBatchManager" StaticBatchManager Class StaticBatchManager StaticBatchManager 类用于静态批处理管理的父类。 Hierarchy StaticBatchManager Index Constructors constructor Methods combine Constructors constructor new StaticBatchManager(): StaticBatch...
来源: Laya3.0_api 发布时间: 20231102
...ng) ![2.png](img/2.png) ```java package { import laya.display.Text; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var txt:Text = new Text(); txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } ``` 这个时候我们就...
来源: Laya2.0_文档 发布时间: 20210714
...ce/kd.png", compassImg, degreesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL)...
来源: Laya2.0_示例 发布时间: 20241002