Skip to content

Commit

Permalink
2021.1 이전 버전 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
connffuused committed Oct 28, 2021
1 parent d6d13a8 commit e49a983
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
### 1.2.2
- 프로필 추가 버튼, 스크롤 뷰로 변경

### 1.2.3
- OpenPropertyEditor 는 2021.1부터 사용 가능

## 1.1.0

- `BuildProfile` 프로필 형태로 설정 저장
Expand Down
8 changes: 7 additions & 1 deletion Editor/BuildWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ private void OnGUI_Single()

if (GUILayout.Button("Edit", GUILayout.Width(40)))
{
#if UNITY_2021_1_OR_NEWER
EditorUtility.OpenPropertyEditor(profile);
#else
Selection.objects = new Object[] { profile };
#endif
}

if (GUILayout.Button("X", GUILayout.Width(20)))
Expand Down Expand Up @@ -329,11 +333,13 @@ private void OnGUI_Single()
{
EditorGUILayout.ObjectField(profile, typeof(BuildProfile), false);
}


#if UNITY_2021_1_OR_NEWER
if (GUILayout.Button("Edit", GUILayout.Width(40)))
{
EditorUtility.OpenPropertyEditor(profile);
}
#endif

if (GUILayout.Button("Select", GUILayout.Width(60)))
{
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 DigitalLavender
Copyright (c) 2021 seonghwan-dev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
```json
{
"dependencies": {
"com.calci.projectbuilder": "1.2.2"
"com.calci.projectbuilder": "1.2.3"
}
}
```
Expand Down Expand Up @@ -43,7 +43,6 @@
<img src="https://user-images.githubusercontent.com/79823287/139198519-8a37da32-00db-4503-aec6-3bb04531546c.png" width="600">
</p>


### API

```csharp
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.calci.projectbuilder",
"version": "1.2.2",
"version": "1.2.3",
"displayName": "Project Builder",
"description": "This package helps to build binary in various configuration.",
"unity": "2019.3",
Expand Down

0 comments on commit e49a983

Please sign in to comment.