Unity 2017.3.1がリリースされました。
Unity – What’s new in Unity 2017.3.1
https://unity3d.com/unity/whats-new/unity-2017.3.1
不具合修正が主な更新内容かと思いますので、2017.3を使っている人は更新してみても良いかなと思います。
リンク
Unity – Download Archive
https://unity3d.com/get-unity/download/archive
Unity 2017.3.1がリリースされました。
Unity – What’s new in Unity 2017.3.1
https://unity3d.com/unity/whats-new/unity-2017.3.1
不具合修正が主な更新内容かと思いますので、2017.3を使っている人は更新してみても良いかなと思います。
Unity – Download Archive
https://unity3d.com/get-unity/download/archive
Unityではスクリプトからコンポーネントを追加したい場合にGameObject.AddComponent
というメソッドが使えますが、コンポーネントを削除したい場合はGameObject.AddComponent
というメソッドが使えるそうです。
GameObject.Destroy(example.GetComponent<boxcollider>());
こんな感じで使うとBox Colliderをexample
オブジェクトから削除できるようです。
【Unity】RemoveComponentを拡張メソッドで実現する – コガネブログ
http://baba-s.hatenablog.com/entry/2014/06/30/092319
Unity – スクリプトリファレンス: GameObject
https://docs.unity3d.com/jp/current/ScriptReference/GameObject.html
Unityでスクリプトを作りオブジェクトに適用してみると、稀にInspectorにEnable/Disableチェックボックスが表示されないことがあります。そんなときはStart
メソッドを追加してみると良いそうです。
void Start()
{
}
困っている人は試してみてください。
component on/off checkbox not showing up in the inspector | Unity Community
https://forum.unity.com/threads/component-on-off-checkbox-not-showing-up-in-the-inspector.56980/