using System.Collections; using System.Collections.Generic; using TMPro; using…
Jump to turn (15)
- 1using System.Collections; using System.Collections.Generic; using TMPro; using U
- 2using System.Collections; using System.Collections.Generic; using TMPro; using U
- 3똑같잖아
- 4using System.Collections; using System.Collections.Generic; using TMPro; using U
- 5Assets\exam09\exam0901 Editor.cs(23,24): error CS1061: 'exam0901' does not conta
- 6Assets\exam09\exam0901 Editor.cs(16,12): error CS0103: The name 'GUILayout' does
- 7저 오류를 수정해서 코드를 짜줘
- 8Assets\exam09\exam0901 Editor.cs(16,12): error CS0103: The name ‘GUILayout’ does
- 9안되
- 10안되
- 11안되
- 12Assets\exam09\exam0901 Editor.cs(23,24): error CS1061: 'exam0901' does not conta
- 13Failed to find entry-points: Mono.Cecil.AssemblyResolutionException: Failed to r
- 14Assets\exam09\exam0901 Editor.cs(17,13): error CS0246: The type or namespace nam
- 15The script 'exam0901editor' does not derive from MonoBehaviour, but has been add
- User
using System.Collections; using System.Collections.Generic; using TMPro; using UnityEditor;
[CustomEditor(typeof(exam09_01))] public class exam09_01editor : Editor {
codepublic override void OnInspectorGUI() { base.OnInspectorGUI(); exam09_01 script = (exam09_01)target; if(GUILayout.Button("do matrix")) { Matrix4x4 _mat = script.transform.localToWorldMatrix; script.matrixOut = _mat; Debug.Log("forward vector :" + script.matrixOut.GetColumn(2)); Debug.Log("up vector :" + script.matrixOut.GetColumn(1)); Debug.Log("right vector :" + Vector3.Cross( script.matrixOut.GetColumn(2), script.matrixOut.GetColumn(1))); } }} 수정좀
- Assistant