大约有 1,400 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
...= "70,8,8,8"; Laya.stage.addChild(ta); } } new UI_TextArea();module laya { import Stage = Laya.Stage; import TextArea = Laya.TextArea; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_TextArea { private skin: string = "res/ui/textarea.png"; con...
来源: Laya2.0_示例 发布时间: 20251130
...tage.height - MCHeight) / 2; Laya.stage.addChild(mc); } })();module laya { import MovieClip = Laya.MovieClip; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_SWF { private SWFPath: string = "../../res/swf/dragon.swf"; private MCWidth: numbe...
来源: Laya_示例 发布时间: 20251130
...n onError(err) { console.log("加载失败: " + err); } })();module laya { import Event = Laya.Event; import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 ...
来源: Laya_示例 发布时间: 20251130
...。 创建TweenDemo.as 文档类,代码编写如下: ```java package { import laya.display.Text; import laya.utils.Tween; import laya.utils.Ease; import laya.webgl.WebGL; public class TweenDemo { public function TweenDemo() { // 初始化舞台 Laya.init(1334,750, WebGL); //背景颜色 Laya.sta...
来源: Laya2.0_文档 发布时间: 20210715
...R标准材质实时阴影渲染问题 先上unity和laya效果的对比图 import ModelViewer from "./ModelViewer"; import Scene = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHE...
来源: Laya_社区 发布时间: 20190813
...了个例子如下: 有两个问题,请见代码中的注释。谢谢import test = ui.test.TestPageUI; import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_...
来源: Laya_社区 发布时间: 20170725
...ole.log(colorPicker.selectedColor); } } new UI_ColorPicker();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorPicker; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ColorPicker { private skin: string = "res/ui/colorPick...
来源: Laya2.0_示例 发布时间: 20251130
...t - MCHeight) / 2; mc.load(SWFPath); } } new Animation_SWF();module laya { import MovieClip = Laya.MovieClip; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_SWF { private SWFPath: string = "res/swf/dragon.swf"; private MCWidth: number = 31...
来源: Laya2.0_示例 发布时间: 20251130
....href = "res/html/test.html"; p.y = 200; } } new Text_HTML();module laya { import Stage = Laya.Stage; import HTMLDivElement = Laya.HTMLDivElement; import HTMLIframeElement = Laya.HTMLIframeElement; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_HTML { constructor() { // ...
来源: Laya2.0_示例 发布时间: 20251130
...putText.maxChars = 5; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_MaxChars { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWi...
来源: Laya_示例 发布时间: 20251130