質問編集履歴
4
追記
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -38,9 +38,9 @@ | |
| 38 38 |  | 
| 39 39 | 
             
            public class CharaWords : MonoBehaviour
         | 
| 40 40 | 
             
            {
         | 
| 41 | 
            -
                 | 
| 41 | 
            +
                public Text 表示名前;
         | 
| 42 42 | 
             
                public string 名前;
         | 
| 43 | 
            -
                 | 
| 43 | 
            +
                public Text 表示ひらがな;
         | 
| 44 44 | 
             
                public string ひらがな;
         | 
| 45 45 |  | 
| 46 46 | 
             
                void OnEnable()
         | 
| @@ -50,4 +50,17 @@ | |
| 50 50 | 
             
                }
         | 
| 51 51 | 
             
            }
         | 
| 52 52 |  | 
| 53 | 
            -
            ```
         | 
| 53 | 
            +
            ```
         | 
| 54 | 
            +
             | 
| 55 | 
            +
            ###追記
         | 
| 56 | 
            +
            0001Sakura というオブジェクトにキャラデータ(Book)スクリプトをアタッチしています
         | 
| 57 | 
            +
            
         | 
| 58 | 
            +
             | 
| 59 | 
            +
             | 
| 60 | 
            +
            ★キャラ紹介パネル0001にアタッチしているCharawordsスクリプトの自作リストの
         | 
| 61 | 
            +
            Charadateに0001Sakuraをアタッチすれば
         | 
| 62 | 
            +
            
         | 
| 63 | 
            +
             | 
| 64 | 
            +
             | 
| 65 | 
            +
            ★キャラ紹介パネル0001の子要素であるアイコン ふりがな 名前 といったテキストやImageに反映できるようにしたいです。
         | 
| 66 | 
            +
            
         | 
3
修正
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -43,13 +43,10 @@ | |
| 43 43 | 
             
                private Text 表示ひらがな;
         | 
| 44 44 | 
             
                public string ひらがな;
         | 
| 45 45 |  | 
| 46 | 
            -
                private string spece = "";
         | 
| 47 | 
            -
             | 
| 48 | 
            -
             | 
| 49 46 | 
             
                void OnEnable()
         | 
| 50 47 | 
             
                {
         | 
| 51 | 
            -
                    表示名前.text = string.Format( | 
| 48 | 
            +
                    表示名前.text = string.Format(名前);
         | 
| 52 | 
            -
                    表示ひらがな.text = string.Format( | 
| 49 | 
            +
                    表示ひらがな.text = string.Format(ひらがな);
         | 
| 53 50 | 
             
                }
         | 
| 54 51 | 
             
            }
         | 
| 55 52 |  | 
2
修正
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -45,7 +45,7 @@ | |
| 45 45 |  | 
| 46 46 | 
             
                private string spece = "";
         | 
| 47 47 |  | 
| 48 | 
            -
             | 
| 48 | 
            +
             | 
| 49 49 | 
             
                void OnEnable()
         | 
| 50 50 | 
             
                {
         | 
| 51 51 | 
             
                    表示名前.text = string.Format(spece, 名前);
         | 
1
追記
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -26,4 +26,31 @@ | |
| 26 26 | 
             
                public string 性別;
         | 
| 27 27 | 
             
                public string  属性;
         | 
| 28 28 | 
             
                public int 出た回数;
         | 
| 29 | 
            +
            }
         | 
| 30 | 
            +
            ```
         | 
| 31 | 
            +
             | 
| 32 | 
            +
            ###現在パネルにアタッチしているスクリプト
         | 
| 33 | 
            +
            ```
         | 
| 34 | 
            +
            using System.Collections;
         | 
| 35 | 
            +
            using System.Collections.Generic;
         | 
| 36 | 
            +
            using UnityEngine;
         | 
| 37 | 
            +
            using UnityEngine.UI;
         | 
| 38 | 
            +
             | 
| 39 | 
            +
            public class CharaWords : MonoBehaviour
         | 
| 40 | 
            +
            {
         | 
| 41 | 
            +
                private Text 表示名前;
         | 
| 42 | 
            +
                public string 名前;
         | 
| 43 | 
            +
                private Text 表示ひらがな;
         | 
| 44 | 
            +
                public string ひらがな;
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                private string spece = "";
         | 
| 47 | 
            +
             | 
| 48 | 
            +
                // Update is called once per frame
         | 
| 49 | 
            +
                void OnEnable()
         | 
| 50 | 
            +
                {
         | 
| 51 | 
            +
                    表示名前.text = string.Format(spece, 名前);
         | 
| 52 | 
            +
                    表示ひらがな.text = string.Format(spece, ひらがな);
         | 
| 53 | 
            +
                }
         | 
| 54 | 
            +
            }
         | 
| 55 | 
            +
             | 
| 29 56 | 
             
            ```
         | 
