Exemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            m_backgroundColor = GUI.backgroundColor;

            EditorGUILayout.BeginHorizontal("box");
            Target.length = EditorGUILayout.FloatField("Max Length ", Target.length);
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.BeginVertical("box");
            Target.uvAnimate = EditorGUILayout.Toggle("UV Animate", Target.uvAnimate);
            if (Target.uvAnimate)
            {
                Target.uvAnimateSpeed = EditorGUILayout.Vector2Field("UV Animate Speed ", Target.uvAnimateSpeed);
            }
            EditorGUILayout.EndVertical();

            EditorGUILayout.BeginVertical("box");
            BulletEditorUtils.SetAssetBackgroundColor(Target.beginPointAssetPath);
            Target.beginPointAssetPath = EditorGUILayout.TextField("Begin Point Asset Path", Target.beginPointAssetPath);
            GUI.backgroundColor        = m_backgroundColor;
            EditorGUILayout.EndVertical();

            EditorGUILayout.BeginVertical("box");
            BulletEditorUtils.SetAssetBackgroundColor(Target.endPointAssetPath);
            Target.endPointAssetPath = EditorGUILayout.TextField("End Point Asset Path", Target.endPointAssetPath);
            GUI.backgroundColor      = m_backgroundColor;
            EditorGUILayout.EndVertical();
        }
Exemplo n.º 2
0
        public override void OnInspectorGUI()
        {
            m_backgroundColor = GUI.backgroundColor;

            EditorGUILayout.BeginVertical("box");
            BulletEditorUtils.SetAssetBackgroundColor(Target.muzzleAssetPath);
            Target.muzzleAssetPath = EditorGUILayout.TextField("Muzzle Asset Path", Target.muzzleAssetPath);
            GUI.backgroundColor    = m_backgroundColor;
            EditorGUILayout.EndVertical();

            EditorGUILayout.BeginVertical("box");
            BulletEditorUtils.SetAssetBackgroundColor(Target.impactAssetPath);
            Target.impactAssetPath = EditorGUILayout.TextField("Impact Asset Path", Target.impactAssetPath);
            GUI.backgroundColor    = m_backgroundColor;
            EditorGUILayout.EndVertical();
        }
Exemplo n.º 3
0
        public override void OnInspectorGUI()
        {
            m_backgroundColor = GUI.backgroundColor;

            EditorGUILayout.BeginHorizontal("box");
            Target.speed = EditorGUILayout.FloatField("Flight Speed ", Target.speed);
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.BeginHorizontal("box");
            Target.lifeTime = EditorGUILayout.FloatField("Life Time ", Target.lifeTime);
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.BeginVertical("box");
            BulletEditorUtils.SetAssetBackgroundColor(Target.muzzleAssetPath);
            Target.muzzleAssetPath = EditorGUILayout.TextField("Muzzle Asset Path", Target.muzzleAssetPath);
            GUI.backgroundColor    = m_backgroundColor;
            EditorGUILayout.EndVertical();

            EditorGUILayout.BeginVertical("box");
            BulletEditorUtils.SetAssetBackgroundColor(Target.impactAssetPath);
            Target.impactAssetPath = EditorGUILayout.TextField("Impact Asset Path", Target.impactAssetPath);
            GUI.backgroundColor    = m_backgroundColor;
            EditorGUILayout.EndVertical();
        }