オブジェクトに付加する必要のないゲームオブジェクトを作成する場合に、このクラスが使われます。
データストアとしての意味を持つアセットに対して有効なクラスです。
プロジェクトのアセットにバインドされている ScriptableObject のインスタンスを作成しやすくするために CreateAssetMenuAttribute を参照してください。
This class doesn't support the null-conditional operator (?.) and the null-coalescing operator (??).
| CreateInstance | ScriptableObject のインスタンスを作成します。 |
| Awake | ScriptableObject スクリプトを開始するとき、この関数は呼び出されます。 |
| OnDestroy | ScriptableObject が破棄されるとき、この関数は呼び出されます。 |
| OnDisable | ScriptableObject クラスのオブジェクトがスコープを外れるとき、この関数は呼び出されます。 |
| OnEnable | オブジェクトがロードされたとき、この関数は呼び出されます。 |
| OnValidate | Editor-only function that Unity calls when the script is loaded or a value changes in the Inspector. |
| Reset | デフォルト値にリセットします |
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
| name | オブジェクト名 |
| GetInstanceID | オブジェクトのインスタンス ID を返します |
| ToString | Returns the name of the object. |
| Destroy | Removes a GameObject, component or asset. |
| DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
| FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
| FindObjectsOfType | Gets a list of all loaded objects of Type type. |
| Instantiate | original のオブジェクトをクローンします |
| bool | オブジェクトが存在するかどうか |
| operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
| operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |