Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity editor script

using UnityEngine;
using System.Collections;
using UnityEditor;

[CustomEditor(typeof(LevelScript))]
public class LevelScriptEditor : Editor 
{
    public override void OnInspectorGUI()
    {
        LevelScript myTarget = (LevelScript)target;

        myTarget.experience = EditorGUILayout.IntField("Experience", myTarget.experience);
        EditorGUILayout.LabelField("Level", myTarget.Level.ToString());
        
        DrawDefaultInspector();
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: wpf messagebox result 
Csharp :: xmldocument to c# object 
Csharp :: get sha1 of file c# 
Csharp :: c# convert datetime to unix timestamp 
Csharp :: generate qr code c# 
Csharp :: how to run a c# program 
Csharp :: how to save a dictionary as a csv file in c# 
Csharp :: Convert DataTable to Dictionary in C# 
Csharp :: list search c# 
Csharp :: c# remove first three characters from string 
Csharp :: dictionary in c# unity 
Csharp :: how to know character is a digit or not in c# 
Csharp :: char to digit in java 
Csharp :: c# .net core memory cache 
Csharp :: on collision enter by layer 2d unity 
Csharp :: unity get center of object 
Csharp :: c# copy files from one folder to another 
Csharp :: hwo to prevent rotation after hitting an object in unity 
Csharp :: c# get property type of list 
Csharp :: convert-integer-to-binary-in-c-sharp 
Csharp :: print all complete object in list c# 
Csharp :: upload file using httpwebrequest c# 
Csharp :: how get the user show mvc controller core 3.1 
Csharp :: c# operator overloading 
Csharp :: c# implement ienumerable t 
Csharp :: c# next level script 
Csharp :: how to send button name for method in c# 
Csharp :: unity reset random seed 
Csharp :: how to insert value to identity column using entity framwork 
Csharp :: C# api get value from header 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =