LlGetTexture/ja - Second Life Wiki

LlGetTexture/ja

From Second Life Wiki

メインページ > LlGetTexture > LlGetTexture/ja
Jump to: navigation, search

関数: string llGetTexture( integer face );

face上のテクスチャのstring値を返します。

• integer face の番号あるいはALL_SIDES

もしfaceの値がALL_SIDESなら、関数は全側面に作用します。
オブジェクトがフルパーミッションではなく、且つ、テクスチャがインベントリにない場合、NULL_KEYを返します。
テクスチャがオブジェクトのインベントリにある場合、インベントリ内の名前を返し、それ以外はテクスチャのUUIDを返します。

警告

  • 関数はfaceの値が示す面が存在しない場合、 エラーを返しません

 
//Tells the owner the textures on 6 sides
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            llSay(0,"Side " + (string)i + " texture is: " + (string)llGetTexture(i));
            ++i;
        }
    }
}
 

関連項目

関数

•  llSetTexture
•  llSetLinkTexture リンクプリムのテクスチャを設定します
•  llGetNumberOfSides プリムの面番号を取得します
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。