开发者

Getting the display text of an object

I would like to know whether there is any m开发者_如何学Cechanism to retrieve the display text of an object. As far as I know, there's no direct LSL function for that.

Isn't there any property that we can use to extract this information?


Assuming you mean the text that hovers over an object:

That text is set by calling llSetText, but there is no corresponding llGetText. Instead, you can use llGetPrimitiveParams with the constant PRIM_TEXT, like so:

list params = llGetPrimitiveParams([PRIM_TEXT]);
string text = llList2String(params, 0);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜