大约有 250 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0086 秒)
...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...
来源: Laya3.0_文档 发布时间: 20250103
...么选择呢。 其中Text是最基础的文本组件,他直接继承于Sprite,而Label继承于UIComponent再往上才是Sprite,从原理上,路径越短,性能自然越好。所以,比较简单的文本,当Text可以满足时,原则上优先使用Text,而Label由于属性非常...
来源: Laya2.0_文档 发布时间: 20210715
... Packagelaya.d3.core.sceneClasspublic class BaseSceneInheritanceBaseScene Sprite Node EventDispatcher ObjectImplements ISubmitSubclasses Scene, VRScene BaseScene 类用于实现场景的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By...
来源: laya_api 发布时间: 20170422
...onstants Packagelaya.d3.core.sceneClasspublic class SceneInheritanceScene Sprite Node EventDispatcher ObjectImplements ISubmit, laya.resource.ICreateResource BaseScene 类用于实现场景。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By a...
来源: laya_api 发布时间: 20170929
...言来创建项目。代码如下: ```java package { import laya.display.Sprite; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' +...
来源: Laya2.0_文档 发布时间: 20210715
...1.4 脚本控制Text2. 代码创建Text基础文本(Text) Text继承于Sprite,是静态文本的基础组件。这里我们介绍一下Text专属的组件属性。 1. LayaAir IDE中使用Text 1.1 创建Text 如图1-1所示,可以在层级窗口中右键进行创建,也可以从小部件窗...
来源: Laya3.0_文档 发布时间: 20240910
...,植被层,建筑层等) 本类就是层级类 author ... Hierarchy Sprite MapLayer Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior layerName mouseThrough name tag tarLayer drawtocanvCtx Accessors _isHeightSet _isWidthSet active acti...
来源: Laya3.0_api 发布时间: 20231115
...ion():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:...
来源: Laya2.0_文档 发布时间: 20210714
...yaScene_AAA`。 ##### 3.3.3 场景导出与预设导出的区别 Scene3D与Sprite3D分别是场景导出的配置项和预设导出的配置项。如下图所示。  ##### 场景 `Scene3D` 采用`Scene3D(场景)`选项导出,会导出整个场景,无论场景中的模型、...
来源: Laya2.0_文档 发布时间: 20210714
... Batch Make The First Level Game Objects 批量导出(选择sprite3d才会有)批量导出场景中所有一级节点 Other Setting --- 其他设置 Cover Original Export Files 导出时覆盖原始...
来源: Laya_社区 发布时间: 20170428