Ejemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        //DrawDefaultInspector();

        RagePixelCamera ragePixelCamera = target as RagePixelCamera;

        ragePixelCamera.pixelSize             = EditorGUILayout.IntField("Pixel size", ragePixelCamera.pixelSize);
        ragePixelCamera.resolutionPixelWidth  = EditorGUILayout.IntField("Resolution width", ragePixelCamera.resolutionPixelWidth);
        ragePixelCamera.resolutionPixelHeight = EditorGUILayout.IntField("Resolution height", ragePixelCamera.resolutionPixelHeight);

        if (GUILayout.Button("Apply"))
        {
            RagePixelUtil.ResetCamera(ragePixelCamera);
        }
    }