お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closes | エスケープされた文字を含む文字列 |
e | 使用するテキスト エンコード |
エスケープシーケンス(特殊文字)を変換し、ユーザーが使いやすいテキストを返します。
特定の文字はURLにとって特殊ない見を持っています。もしこれらのURLパラメータをやりとりする必要がある場合、それらをエスケープシーケンスへ変換する必要があります。この関数はエスケープシーケンスを含む文字列を受取、通常のテキストに戻して変換します。
function Start () { // Plain name is "Fish & Chips". var plainName = WWW.UnEscapeURL('Fish+%26+Chips'); }
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Start() { string plainName = WWW.UnEscapeURL("Fish+%26+Chips"); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Start() as void: plainName as string = WWW.UnEscapeURL('Fish+%26+Chips')
See Also: EscapeURL.