initial commit

This commit is contained in:
Jo 2025-01-07 02:06:59 +01:00
parent 6715289efe
commit 788c3389af
37645 changed files with 2526849 additions and 80 deletions

View file

@ -0,0 +1,38 @@
using UnityEditor;
using UnityEngine;
namespace Timeline.Samples
{
// Custom property drawer that draws all child properties inline
[CustomPropertyDrawer(typeof(NoFoldOutAttribute))]
public class NoFoldOutPropertyDrawer : PropertyDrawer
{
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
{
if (!property.hasChildren)
return base.GetPropertyHeight(property, label);
property.isExpanded = true;
return EditorGUI.GetPropertyHeight(property, label, true) -
EditorGUI.GetPropertyHeight(property, label, false);
}
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
if (!property.hasChildren)
base.OnGUI(position, property, label);
else
{
SerializedProperty iter = property.Copy();
property.Next(true);
do
{
float height = EditorGUI.GetPropertyHeight(property, property.hasVisibleChildren);
position.height = height;
EditorGUI.PropertyField(position, property, property.hasVisibleChildren);
position.y = position.y + height;
}
while (property.NextVisible(false));
}
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fa71063a2265c0f46a8c2473f8ca8e40
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,17 @@
{
"name": "Timeline.Samples.Utilities.Editor",
"references": [
"GUID:ef63a73cb159aa04997399c27d4eb08a"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6a967aa03bf014540b1c53a0617cea1d
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: