|
|
|
@ -33,13 +33,19 @@ export class Entsel implements Command
|
|
|
|
|
vcs.add(new Vector3(0, -20, 0));
|
|
|
|
|
dyn.SetPostion(vcs);
|
|
|
|
|
|
|
|
|
|
let msg = "";
|
|
|
|
|
if (res.Entity instanceof Entity)
|
|
|
|
|
{
|
|
|
|
|
msg = `id:${res.Entity.objectId?.Index}`;
|
|
|
|
|
if (res.Entity.Template?.Object)
|
|
|
|
|
dyn.UpdatePrompt(`模版:${res.Entity.Template.Index},${(<TemplateRecord>(res.Entity.Template.Object)).Objects.length}`);
|
|
|
|
|
else if (res.Entity instanceof EntityRef || res.Entity instanceof EntityFbx)
|
|
|
|
|
dyn.UpdatePrompt(res.Entity.Url);
|
|
|
|
|
else
|
|
|
|
|
dyn.UpdatePrompt(res.Entity.ColorIndex.toString());
|
|
|
|
|
msg += ` 模板:${res.Entity.Template.Index},${(<TemplateRecord>(res.Entity.Template.Object)).Objects.length}`;
|
|
|
|
|
if (res.Entity instanceof EntityRef || res.Entity instanceof EntityFbx)
|
|
|
|
|
msg += ` URL:${res.Entity.Url}`;
|
|
|
|
|
|
|
|
|
|
msg += ` 颜色:${res.Entity.ColorIndex.toString()}`;
|
|
|
|
|
}
|
|
|
|
|
if (msg)
|
|
|
|
|
dyn.UpdatePrompt(msg);
|
|
|
|
|
|
|
|
|
|
if (res.Entity.Id)
|
|
|
|
|
{
|
|
|
|
|