Skip to content

Commit f2f150d

Browse files
committed
Fix Example
1 parent 6e1d148 commit f2f150d

File tree

2 files changed

+132
-2
lines changed

2 files changed

+132
-2
lines changed

Assets/Example/Example.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public class Example : MonoBehaviour
7979
};
8080
}
8181

82+
#if UNITY_EDITOR
83+
8284
/// These classes are in a folder named "Editor" in the project
8385

8486
[CustomPropertyDrawer(typeof(Peach), true)]
@@ -111,4 +113,5 @@ public override float GetPropertyHeight (SerializedProperty property, GUIContent
111113
{
112114
return EditorGUIUtility.singleLineHeight;
113115
}
114-
}
116+
}
117+
#endif

Assets/Example/Example.unity

Lines changed: 128 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RenderSettings:
3838
m_ReflectionIntensity: 1
3939
m_CustomReflection: {fileID: 0}
4040
m_Sun: {fileID: 0}
41-
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
41+
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
4242
m_UseRadianceAmbientProbe: 0
4343
--- !u!157 &3
4444
LightmapSettings:
@@ -207,6 +207,133 @@ Transform:
207207
m_Father: {fileID: 0}
208208
m_RootOrder: 0
209209
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
210+
--- !u!1 &586792171
211+
GameObject:
212+
m_ObjectHideFlags: 0
213+
m_CorrespondingSourceObject: {fileID: 0}
214+
m_PrefabInstance: {fileID: 0}
215+
m_PrefabAsset: {fileID: 0}
216+
serializedVersion: 6
217+
m_Component:
218+
- component: {fileID: 586792173}
219+
- component: {fileID: 586792172}
220+
m_Layer: 0
221+
m_Name: Example
222+
m_TagString: Untagged
223+
m_Icon: {fileID: 0}
224+
m_NavMeshLayer: 0
225+
m_StaticEditorFlags: 0
226+
m_IsActive: 1
227+
--- !u!114 &586792172
228+
MonoBehaviour:
229+
m_ObjectHideFlags: 0
230+
m_CorrespondingSourceObject: {fileID: 0}
231+
m_PrefabInstance: {fileID: 0}
232+
m_PrefabAsset: {fileID: 0}
233+
m_GameObject: {fileID: 586792171}
234+
m_Enabled: 1
235+
m_EditorHideFlags: 0
236+
m_Script: {fileID: 11500000, guid: 2be69d932204e464fb7da2e0d53eab25, type: 3}
237+
m_Name:
238+
m_EditorClassIdentifier:
239+
food1:
240+
rid: 9020349853700980763
241+
food2:
242+
rid: 9020349853700980764
243+
food3:
244+
rid: 9020349853700980765
245+
foodOne:
246+
rid: 9020349853700980766
247+
foodTwo:
248+
rid: 9020349853700980767
249+
foodThree:
250+
rid: 9020349853700980768
251+
foodsOne:
252+
- rid: 9020349853700980769
253+
- rid: 9020349853700980770
254+
- rid: 9020349853700980771
255+
foodsTwo:
256+
- rid: 9020349853700980772
257+
- rid: 9020349853700980773
258+
- rid: 9020349853700980774
259+
references:
260+
version: 2
261+
RefIds:
262+
- rid: 9020349853700980763
263+
type: {class: Apple, ns: , asm: Assembly-CSharp}
264+
data:
265+
name: Apple
266+
kcal: 100
267+
- rid: 9020349853700980764
268+
type: {class: Peach, ns: , asm: Assembly-CSharp}
269+
data:
270+
name: Peach
271+
kcal: 100
272+
- rid: 9020349853700980765
273+
type: {class: Grape, ns: , asm: Assembly-CSharp}
274+
data:
275+
name: Grape
276+
kcal: 100
277+
- rid: 9020349853700980766
278+
type: {class: Apple, ns: , asm: Assembly-CSharp}
279+
data:
280+
name: Apple
281+
kcal: 100
282+
- rid: 9020349853700980767
283+
type: {class: Peach, ns: , asm: Assembly-CSharp}
284+
data:
285+
name: Peach
286+
kcal: 100
287+
- rid: 9020349853700980768
288+
type: {class: Grape, ns: , asm: Assembly-CSharp}
289+
data:
290+
name: Grape
291+
kcal: 100
292+
- rid: 9020349853700980769
293+
type: {class: Apple, ns: , asm: Assembly-CSharp}
294+
data:
295+
name: Apple
296+
kcal: 100
297+
- rid: 9020349853700980770
298+
type: {class: Peach, ns: , asm: Assembly-CSharp}
299+
data:
300+
name: Peach
301+
kcal: 100
302+
- rid: 9020349853700980771
303+
type: {class: Grape, ns: , asm: Assembly-CSharp}
304+
data:
305+
name: Grape
306+
kcal: 100
307+
- rid: 9020349853700980772
308+
type: {class: Apple, ns: , asm: Assembly-CSharp}
309+
data:
310+
name: Apple
311+
kcal: 100
312+
- rid: 9020349853700980773
313+
type: {class: Peach, ns: , asm: Assembly-CSharp}
314+
data:
315+
name: Peach
316+
kcal: 100
317+
- rid: 9020349853700980774
318+
type: {class: Grape, ns: , asm: Assembly-CSharp}
319+
data:
320+
name: Grape
321+
kcal: 100
322+
--- !u!4 &586792173
323+
Transform:
324+
m_ObjectHideFlags: 0
325+
m_CorrespondingSourceObject: {fileID: 0}
326+
m_PrefabInstance: {fileID: 0}
327+
m_PrefabAsset: {fileID: 0}
328+
m_GameObject: {fileID: 586792171}
329+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
330+
m_LocalPosition: {x: 0, y: 0, z: 0}
331+
m_LocalScale: {x: 1, y: 1, z: 1}
332+
m_ConstrainProportionsScale: 0
333+
m_Children: []
334+
m_Father: {fileID: 0}
335+
m_RootOrder: 2
336+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
210337
--- !u!1 &1127138992
211338
GameObject:
212339
m_ObjectHideFlags: 0

0 commit comments

Comments
 (0)