Difference between revisions of "LlSetTexture/ja"

From Second Life Wiki
Jump to navigation Jump to search
m (Undo revision 850882 by Mako Nozaki (Talk))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{LSL_Function/face/ja|face}}{{LSL_Function/inventory/ja|texture|uuid=true|type=texture}}
{{Issues/SVC-914}}{{LSL_Function/face/ja|face}}{{LSL_Function/inventory/ja|texture|uuid=true|type=texture}}
{{LSL_Function/ja
{{LSL_Function/ja
|func=llSetTexture
|func=llSetTexture
Line 7: Line 7:
|p2_type=integer|p2_name=face
|p2_type=integer|p2_name=face
|func_footnote
|func_footnote
|func_desc=プリムの'''face'''に'''texture'''を設定します。
|func_desc=プリムの '''face''' に '''texture''' を設定します。
|return_text
|return_text
|spec
|spec
|caveats
|caveats=
*[[Inspect|検査]] ではテクスチャの情報は ({{LSLG/ja|llGetInventoryCreator|クリエーター}} のようには) 表示されません
|constants
|constants
|examples=<lsl>
|examples=<source lang="lsl2">
default
default
{
{
Line 20: Line 21:
         llSetTexture(texture, ALL_SIDES);
         llSetTexture(texture, ALL_SIDES);
     }
     }
}</lsl>
}</source>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llSetLinkTexture/ja|llSetLinkTexture]]|}}
|also_functions={{LSL DefineRow||{{LSLG/ja|llSetLinkTexture}}|}}
{{LSL DefineRow||[[llGetTexture/ja|llGetTexture]]|}}
{{LSL DefineRow||{{LSLG/ja|llGetTexture}}|}}
{{LSL DefineRow||[[llSetPrimitiveParams/ja|llSetPrimitiveParams]]|}}
{{LSL DefineRow||{{LSLG/ja|llSetPrimitiveParams}}|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams/ja|llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||{{LSLG/ja|llSetLinkPrimitiveParams}}|}}
|also_tests
|also_tests
|also_events
|also_events

Latest revision as of 06:44, 25 February 2016

要約

関数: llSetTexture( string texture, integer face );

プリムの facetexture を設定します。

• string texture プリムの インベントリ の中にあるtextureまたは UUID
• integer face 番号もしくは ALL_SIDES

faceALL_SIDES であれば関数は全ての面に作用します。

警告

  • この関数は 0.2 秒間、スクリプトを停止します。
  • face が存在しない面を指している場合、関数はエラーを出さずに復帰します。
  • texture がプリムの中で見つからない場合、かつこれが UUID でない場合、またはこれがtextureでない場合、エラーが DEBUG_CHANNEL 上で叫ばれます。
  • textureUUID である場合、オブジェクト自体に新たな アセット権限 が発生するようなことはありません。
    • アセットをプリムのインベントリの中に置いた場合、これまで発生していた使用制限は新しいオブジェクトで新たに作成されません。
  • 検査 ではテクスチャの情報は (クリエーター のようには) 表示されません
All Issues ~ Search JIRA for related Bugs

サンプル

default
{
    state_entry()
    {
        string texture = llGetInventoryName(INVENTORY_TEXTURE, 0);
        llSetTexture(texture, ALL_SIDES);
    }
}

関連項目

特記事項

All Issues

~ Search JIRA for related Issues
   CHANGED_TEXTURE is not triggered when texture is changed via script

Signature

function void llSetTexture( string texture, integer face );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。