質問編集履歴
1
コードを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,4 +3,30 @@
|
|
3
3
|
Unity内でオブジェクト名に「bone.001」などがあり、そのオブジェクト名をスクリプト内で宣言したいのですが、
|
4
4
|
おそらく「.」が使えないようで「構文エラーです」とエラーがでてしまいます。
|
5
5
|
オブジェクトをリネームして「bone_001」等にすれば宣言出来るのですがなるべく元ファイルのまま宣言したいのです。
|
6
|
-
何か方法はないでしょうか?
|
6
|
+
何か方法はないでしょうか?
|
7
|
+
|
8
|
+
コードを追記します、以下でエラーが出ます、よろしくお願いします。
|
9
|
+
```ここに言語を入力
|
10
|
+
using System.Collections;
|
11
|
+
using System.Collections.Generic;
|
12
|
+
using UnityEngine;
|
13
|
+
|
14
|
+
public class test : MonoBehaviour
|
15
|
+
{
|
16
|
+
|
17
|
+
public GameObject spine.001;
|
18
|
+
|
19
|
+
|
20
|
+
// Start is called before the first frame update
|
21
|
+
void Start()
|
22
|
+
{
|
23
|
+
|
24
|
+
}
|
25
|
+
|
26
|
+
// Update is called once per frame
|
27
|
+
void Update()
|
28
|
+
{
|
29
|
+
|
30
|
+
}
|
31
|
+
}
|
32
|
+
```
|