summaryrefslogtreecommitdiffstats
path: root/Scripts/DataDecoder.asset
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-10-20 13:43:54 -0700
committeryum <yum.food.vr@gmail.com>2025-10-20 13:43:54 -0700
commit630573cb0b4db15cbe155d674bf2c0f61d0f86b6 (patch)
tree6bccc3b88eb67818d3d37f1d5155fbb92fd8d6b4 /Scripts/DataDecoder.asset
parentb0a200beca94c27388e4d2df0fff04332941329e (diff)
simplify decoder; note that you need to use an srgb texture with it
Diffstat (limited to 'Scripts/DataDecoder.asset')
-rw-r--r--Scripts/DataDecoder.asset118
1 files changed, 32 insertions, 86 deletions
diff --git a/Scripts/DataDecoder.asset b/Scripts/DataDecoder.asset
index 264a519..ddfcdfe 100644
--- a/Scripts/DataDecoder.asset
+++ b/Scripts/DataDecoder.asset
@@ -44,7 +44,7 @@ MonoBehaviour:
Data:
- Name:
Entry: 12
- Data: 8
+ Data: 7
- Name:
Entry: 7
Data:
@@ -158,25 +158,19 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
- Data: isValid
+ Data: tileToCheck
- Name: $v
Entry: 7
Data: 8|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
- Data: isValid
+ Data: tileToCheck
- Name: <UserType>k__BackingField
- Entry: 7
- Data: 9|System.RuntimeType, mscorlib
- - Name:
- Entry: 1
- Data: System.Boolean, mscorlib
- - Name:
- Entry: 8
- Data:
+ Entry: 9
+ Data: 6
- Name: <SystemType>k__BackingField
Entry: 9
- Data: 9
+ Data: 6
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -188,10 +182,10 @@ MonoBehaviour:
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
- Data: false
+ Data: true
- Name: _fieldAttributes
Entry: 7
- Data: 10|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
+ Data: 9|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0
@@ -212,25 +206,25 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
- Data: pixelDataFloat
+ Data: pixelData
- Name: $v
Entry: 7
- Data: 11|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
+ Data: 10|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
- Data: pixelDataFloat
+ Data: pixelData
- Name: <UserType>k__BackingField
Entry: 7
- Data: 12|System.RuntimeType, mscorlib
+ Data: 11|System.RuntimeType, mscorlib
- Name:
Entry: 1
- Data: UnityEngine.Color[], UnityEngine.CoreModule
+ Data: UnityEngine.Color32[], UnityEngine.CoreModule
- Name:
Entry: 8
Data:
- Name: <SystemType>k__BackingField
Entry: 9
- Data: 12
+ Data: 11
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -245,7 +239,7 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
- Data: 13|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
+ Data: 12|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0
@@ -266,73 +260,25 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
- Data: pixelDataBytes
+ Data: hasData
- Name: $v
Entry: 7
- Data: 14|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
+ Data: 13|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
- Data: pixelDataBytes
+ Data: hasData
- Name: <UserType>k__BackingField
Entry: 7
- Data: 15|System.RuntimeType, mscorlib
+ Data: 14|System.RuntimeType, mscorlib
- Name:
Entry: 1
- Data: UnityEngine.Color32[], UnityEngine.CoreModule
- - Name:
- Entry: 8
- Data:
- - Name: <SystemType>k__BackingField
- Entry: 9
- Data: 15
- - Name: <SyncMode>k__BackingField
- Entry: 7
- Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- - Name:
- Entry: 6
- Data:
- - Name:
- Entry: 8
- Data:
- - Name: <IsSerialized>k__BackingField
- Entry: 5
- Data: false
- - Name: _fieldAttributes
- Entry: 7
- Data: 16|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- - Name:
- Entry: 12
- Data: 0
- - Name:
- Entry: 13
- Data:
- - Name:
- Entry: 8
- Data:
- - Name:
- Entry: 8
- Data:
+ Data: System.Boolean, mscorlib
- Name:
Entry: 8
Data:
- - Name:
- Entry: 7
- Data:
- - Name: $k
- Entry: 1
- Data: hasData
- - Name: $v
- Entry: 7
- Data: 17|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- - Name: <Name>k__BackingField
- Entry: 1
- Data: hasData
- - Name: <UserType>k__BackingField
- Entry: 9
- Data: 9
- Name: <SystemType>k__BackingField
Entry: 9
- Data: 9
+ Data: 14
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -347,7 +293,7 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
- Data: 18|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
+ Data: 15|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0
@@ -368,19 +314,19 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
- Data: hasReportedTileLimit
+ Data: readWidth
- Name: $v
Entry: 7
- Data: 19|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
+ Data: 16|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
- Data: hasReportedTileLimit
+ Data: readWidth
- Name: <UserType>k__BackingField
Entry: 9
- Data: 9
+ Data: 6
- Name: <SystemType>k__BackingField
Entry: 9
- Data: 9
+ Data: 6
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -395,7 +341,7 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
- Data: 20|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
+ Data: 17|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0
@@ -416,13 +362,13 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
- Data: currentPixelFormat
+ Data: readHeight
- Name: $v
Entry: 7
- Data: 21|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
+ Data: 18|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
- Data: currentPixelFormat
+ Data: readHeight
- Name: <UserType>k__BackingField
Entry: 9
Data: 6
@@ -443,7 +389,7 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
- Data: 22|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
+ Data: 19|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0