开发者

Getting the display text of an object

开发者 https://www.devze.com 2022-12-19 06:02 出处:网络
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.

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

精彩评论

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