diff --git a/.github/assets/set_instance_1.png b/.github/assets/set_instance_1.png index d143ce8..e683fe8 100644 Binary files a/.github/assets/set_instance_1.png and b/.github/assets/set_instance_1.png differ diff --git a/.github/assets/set_instance_2.png b/.github/assets/set_instance_2.png index 48cc811..38c2ae4 100644 Binary files a/.github/assets/set_instance_2.png and b/.github/assets/set_instance_2.png differ diff --git a/Assets/Gorialis.meta b/Assets/Gorialis.meta new file mode 100644 index 0000000..821d69e --- /dev/null +++ b/Assets/Gorialis.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 40e31908c57df1b43998b411f78fd20a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UdonQR.meta b/Assets/Gorialis/UdonQR.meta similarity index 100% rename from Assets/UdonQR.meta rename to Assets/Gorialis/UdonQR.meta diff --git a/Assets/Gorialis/UdonQR/.icon.png b/Assets/Gorialis/UdonQR/.icon.png new file mode 100644 index 0000000..757f162 Binary files /dev/null and b/Assets/Gorialis/UdonQR/.icon.png differ diff --git a/Assets/Gorialis/UdonQR/Fonts.meta b/Assets/Gorialis/UdonQR/Fonts.meta new file mode 100644 index 0000000..653b9ca --- /dev/null +++ b/Assets/Gorialis/UdonQR/Fonts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 968001c856f7fa24aa2e846e665e2661 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Gorialis/UdonQR/Fonts/UdonQRBlock.ttf b/Assets/Gorialis/UdonQR/Fonts/UdonQRBlock.ttf new file mode 100644 index 0000000..344bd9d Binary files /dev/null and b/Assets/Gorialis/UdonQR/Fonts/UdonQRBlock.ttf differ diff --git a/Assets/Gorialis/UdonQR/Fonts/UdonQRBlock.ttf.meta b/Assets/Gorialis/UdonQR/Fonts/UdonQRBlock.ttf.meta new file mode 100644 index 0000000..5cb84c1 --- /dev/null +++ b/Assets/Gorialis/UdonQR/Fonts/UdonQRBlock.ttf.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 1c7256506e50abe4a898e8aff936e11d +TrueTypeFontImporter: + externalObjects: {} + serializedVersion: 4 + fontSize: 16 + forceTextureCase: -2 + characterSpacing: 0 + characterPadding: 1 + includeFontData: 1 + fontName: UdonQRBlockDrawing + fontNames: + - UdonQRBlockDrawing + fallbackFontReferences: [] + customCharacters: + fontRenderingMode: 0 + ascentCalculationMode: 1 + useLegacyBoundsCalculation: 0 + shouldRoundAdvanceValue: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UdonQR/Prefabs.meta b/Assets/Gorialis/UdonQR/Prefabs.meta similarity index 100% rename from Assets/UdonQR/Prefabs.meta rename to Assets/Gorialis/UdonQR/Prefabs.meta diff --git a/Assets/UdonQR/Prefabs/QRCanvas.prefab b/Assets/Gorialis/UdonQR/Prefabs/QRCanvas.prefab similarity index 81% rename from Assets/UdonQR/Prefabs/QRCanvas.prefab rename to Assets/Gorialis/UdonQR/Prefabs/QRCanvas.prefab index 2268828..86085e9 100644 --- a/Assets/UdonQR/Prefabs/QRCanvas.prefab +++ b/Assets/Gorialis/UdonQR/Prefabs/QRCanvas.prefab @@ -12,6 +12,7 @@ GameObject: - component: {fileID: 4846963176756753661} - component: {fileID: 4846963176756753660} - component: {fileID: 4846963176756753663} + - component: {fileID: -407794894386763003} - component: {fileID: 4846963176756753662} m_Layer: 0 m_Name: QRCanvas @@ -70,7 +71,7 @@ MonoBehaviour: m_GameObject: {fileID: 4846963176756753657} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} m_Name: m_EditorClassIdentifier: m_UiScaleMode: 0 @@ -92,7 +93,7 @@ MonoBehaviour: m_GameObject: {fileID: 4846963176756753657} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} m_Name: m_EditorClassIdentifier: m_IgnoreReversedGraphics: 1 @@ -100,6 +101,32 @@ MonoBehaviour: m_BlockingMask: serializedVersion: 2 m_Bits: 4294967295 +--- !u!114 &-407794894386763003 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4846963176756753657} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c32b0eecbf0b1b5418acf2f2662c03a7, type: 3} + m_Name: + m_EditorClassIdentifier: + serializationData: + SerializedFormat: 2 + SerializedBytes: + ReferencedUnityObjects: [] + SerializedBytesString: + Prefab: {fileID: 0} + PrefabModificationsReferencedUnityObjects: [] + PrefabModifications: [] + SerializationNodes: [] + _udonSharpBackingUdonBehaviour: {fileID: 4846963176756753662} + _qrLibrary: {fileID: 0} + _canvasTarget: {fileID: 4846963176943915907} + errorCorrection: 0 + maskPattern: 1 --- !u!114 &4846963176756753662 MonoBehaviour: m_ObjectHideFlags: 0 @@ -118,10 +145,12 @@ MonoBehaviour: proximity: 2 SynchronizePosition: 0 AllowCollisionOwnershipTransfer: 0 - serializedProgramAsset: {fileID: 11400000, guid: 38340f97df821b7448d6251a0ae8bc1c, + Reliable: 0 + _syncMethod: 2 + serializedProgramAsset: {fileID: 11400000, guid: b17cd950041874e40bc940f7bdaec4ce, type: 2} programSource: {fileID: 11400000, guid: e54052152dd448647b48087a5cc71c13, type: 2} - serializedPublicVariablesBytesString: Ai8AAAAAATIAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAFQAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AAAAAAAYBAAAAAA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AABTAHkAcwB0AGUAbQAuAFMAdAByAGkAbgBnACwAIABtAHMAYwBvAHIAbABpAGIAJwEKAAAAUwB5AG0AYgBvAGwATgBhAG0AZQABHwAAAF8AXwBfAFUAZABvAG4AUwBoAGEAcgBwAEIAZQBoAGEAdgBpAG8AdQByAFYAZQByAHMAaQBvAG4AXwBfAF8AJwEEAAAAdAB5AHAAZQABFgAAAFMAeQBzAHQAZQBtAC4ASQBuAHQAMwAyACwAIABtAHMAYwBvAHIAbABpAGIAFwEFAAAAVgBhAGwAdQBlAAIAAAAHBQIvBAAAAAFLAAAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ALgBVAGQAbwBuAFYAYQByAGkAYQBiAGwAZQBgADEAWwBbAFMAeQBzAHQAZQBtAC4AQgBvAG8AbABlAGEAbgAsACAAbQBzAGMAbwByAGwAaQBiAF0AXQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ABgAAAAYCAAAAAAAAACcBBAAAAHQAeQBwAGUAARcAAABTAHkAcwB0AGUAbQAuAFMAdAByAGkAbgBnACwAIABtAHMAYwBvAHIAbABpAGIAJwEKAAAAUwB5AG0AYgBvAGwATgBhAG0AZQABLgAAAF8AXwBfAFUAZABvAG4AUwBoAGEAcgBwAEIAZQBoAGEAdgBpAG8AdQByAFAAZQByAHMAaQBzAHQARABhAHQAYQBGAHIAbwBtAFUAcABnAHIAYQBkAGUAXwBfAF8AJwEEAAAAdAB5AHAAZQABGAAAAFMAeQBzAHQAZQBtAC4AQgBvAG8AbABlAGEAbgAsACAAbQBzAGMAbwByAGwAaQBiACsBBQAAAFYAYQBsAHUAZQABBwUHBQcF publicVariablesUnityEngineObjects: - {fileID: 4846963176943915907} publicVariablesSerializationDataFormat: 0 @@ -179,17 +208,18 @@ MonoBehaviour: m_GameObject: {fileID: 4846963176943915965} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0, g: 0, b: 0, a: 1} m_RaycastTarget: 1 + m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_Font: {fileID: 12800000, guid: 1c7256506e50abe4a898e8aff936e11d, type: 3} m_FontSize: 50 m_FontStyle: 0 m_BestFit: 1 diff --git a/Assets/UdonQR/Prefabs/QRCanvas.prefab.meta b/Assets/Gorialis/UdonQR/Prefabs/QRCanvas.prefab.meta similarity index 100% rename from Assets/UdonQR/Prefabs/QRCanvas.prefab.meta rename to Assets/Gorialis/UdonQR/Prefabs/QRCanvas.prefab.meta diff --git a/Assets/UdonQR/Prefabs/UdonQR.prefab b/Assets/Gorialis/UdonQR/Prefabs/UdonQR.prefab similarity index 63% rename from Assets/UdonQR/Prefabs/UdonQR.prefab rename to Assets/Gorialis/UdonQR/Prefabs/UdonQR.prefab index dc89b1d..47a11d1 100644 --- a/Assets/UdonQR/Prefabs/UdonQR.prefab +++ b/Assets/Gorialis/UdonQR/Prefabs/UdonQR.prefab @@ -9,6 +9,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 9018801747113834374} + - component: {fileID: -8333754040373923659} - component: {fileID: 9018801747113834373} m_Layer: 0 m_Name: UdonQR @@ -31,6 +32,28 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &-8333754040373923659 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9018801747113834372} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 12bea67aa39620741af205f1260869a4, type: 3} + m_Name: + m_EditorClassIdentifier: + serializationData: + SerializedFormat: 0 + SerializedBytes: 1701120000004500520052004f0052005f0043004f005200520045004300540049004f004e005f004c00010000001701120000004500520052004f0052005f0043004f005200520045004300540049004f004e005f004d00000000001701120000004500520052004f0052005f0043004f005200520045004300540049004f004e005f005100030000001701120000004500520052004f0052005f0043004f005200520045004300540049004f004e005f00480002000000 + ReferencedUnityObjects: [] + SerializedBytesString: + Prefab: {fileID: 0} + PrefabModificationsReferencedUnityObjects: [] + PrefabModifications: [] + SerializationNodes: [] + _udonSharpBackingUdonBehaviour: {fileID: 9018801747113834373} --- !u!114 &9018801747113834373 MonoBehaviour: m_ObjectHideFlags: 0 @@ -49,9 +72,11 @@ MonoBehaviour: proximity: 2 SynchronizePosition: 0 AllowCollisionOwnershipTransfer: 0 - serializedProgramAsset: {fileID: 11400000, guid: c630def4bff0c964b90f859edf60ba10, + Reliable: 0 + _syncMethod: 0 + serializedProgramAsset: {fileID: 11400000, guid: aa70c395fc6db6646b30ea8698568e7d, type: 2} programSource: {fileID: 11400000, guid: 720399303af7da743a56c91b0728f8e1, type: 2} - serializedPublicVariablesBytesString: Ai8AAAAAATIAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAFQAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AAAAAAAYBAAAAAAAAACcBBAAAAHQAeQBwAGUAAWgAAABTAHkAcwB0AGUAbQAuAEMAbwBsAGwAZQBjAHQAaQBvAG4AcwAuAEcAZQBuAGUAcgBpAGMALgBMAGkAcwB0AGAAMQBbAFsAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ALgBJAG4AdABlAHIAZgBhAGMAZQBzAC4ASQBVAGQAbwBuAFYAYQByAGkAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AXQBdACwAIABtAHMAYwBv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AEIAZQBoAGEAdgBpAG8AdQByAFYAZQByAHMAaQBvAG4AXwBfAF8AJwEEAAAAdAB5AHAAZQABFgAAAFMAeQBzAHQAZQBtAC4ASQBuAHQAMwAyACwAIABtAHMAYwBvAHIAbABpAGIAFwEFAAAAVgBhAGwAdQBlAAIAAAAHBQIvAwAAAAFLAAAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ALgBVAGQAbwBuAFYAYQByAGkAYQBiAGwAZQBgADEAWwBbAFMAeQBzAHQAZQBtAC4AQgBvAG8AbABlAGEAbgAsACAAbQBzAGMAbwByAGwAaQBiAF0AXQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ABwAAAAYCAAAAAAAAACcBBAAAAHQAeQBwAGUAARcAAABTAHkAcwB0AGUAbQAuAFMAdAByAGkAbgBnACwAIABtAHMAYwBvAHIAbABpAGIAJwEKAAAAUwB5AG0AYgBvAGwATgBhAG0AZQABLgAAAF8AXwBfAFUAZABvAG4AUwBoAGEAcgBwAEIAZQBoAGEAdgBpAG8AdQByAFAAZQByAHMAaQBzAHQARABhAHQAYQBGAHIAbwBtAFUAcABnAHIAYQBkAGUAXwBfAF8AJwEEAAAAdAB5AHAAZQABGAAAAFMAeQBzAHQAZQBtAC4AQgBvAG8AbABlAGEAbgAsACAAbQBzAGMAbwByAGwAaQBiACsBBQAAAFYAYQBsAHUAZQABBwUHBQcF publicVariablesUnityEngineObjects: [] publicVariablesSerializationDataFormat: 0 diff --git a/Assets/UdonQR/Prefabs/UdonQR.prefab.meta b/Assets/Gorialis/UdonQR/Prefabs/UdonQR.prefab.meta similarity index 100% rename from Assets/UdonQR/Prefabs/UdonQR.prefab.meta rename to Assets/Gorialis/UdonQR/Prefabs/UdonQR.prefab.meta diff --git a/Assets/UdonQR/Udon.meta b/Assets/Gorialis/UdonQR/Udon.meta similarity index 100% rename from Assets/UdonQR/Udon.meta rename to Assets/Gorialis/UdonQR/Udon.meta diff --git a/Assets/Gorialis/UdonQR/Udon/UdonQR.asset b/Assets/Gorialis/UdonQR/Udon/UdonQR.asset new file mode 100644 index 0000000..c1856c6 --- /dev/null +++ b/Assets/Gorialis/UdonQR/Udon/UdonQR.asset @@ -0,0 +1,611 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3} + m_Name: UdonQR + m_EditorClassIdentifier: + serializedUdonProgramAsset: {fileID: 11400000, guid: aa70c395fc6db6646b30ea8698568e7d, + type: 2} + udonAssembly: + assemblyError: + sourceCsScript: {fileID: 11500000, guid: 12bea67aa39620741af205f1260869a4, type: 3} + scriptVersion: 2 + compiledVersion: 2 + behaviourSyncMode: 0 + hasInteractEvent: 0 + scriptID: -8988468588349057802 + serializationData: + SerializedFormat: 2 + SerializedBytes: + ReferencedUnityObjects: [] + SerializedBytesString: + Prefab: {fileID: 0} + PrefabModificationsReferencedUnityObjects: [] + PrefabModifications: [] + SerializationNodes: + - Name: fieldDefinitions + Entry: 7 + Data: 0|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[UdonSharp.Compiler.FieldDefinition, + UdonSharp.Editor]], mscorlib + - Name: comparer + Entry: 7 + Data: 1|System.Collections.Generic.GenericEqualityComparer`1[[System.String, + mscorlib]], mscorlib + - Name: + Entry: 8 + Data: + - Name: + Entry: 12 + Data: 11 + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: ERROR_CORRECTION_L + - Name: $v + Entry: 7 + Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: ERROR_CORRECTION_L + - Name: k__BackingField + Entry: 7 + Data: 3|System.RuntimeType, mscorlib + - Name: + Entry: 1 + Data: System.Int32, mscorlib + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 9 + Data: 3 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 4|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: ERROR_CORRECTION_M + - Name: $v + Entry: 7 + Data: 5|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: ERROR_CORRECTION_M + - Name: k__BackingField + Entry: 9 + Data: 3 + - Name: k__BackingField + Entry: 9 + Data: 3 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 6|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: ERROR_CORRECTION_Q + - Name: $v + Entry: 7 + Data: 7|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: ERROR_CORRECTION_Q + - Name: k__BackingField + Entry: 9 + Data: 3 + - Name: k__BackingField + Entry: 9 + Data: 3 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 8|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: ERROR_CORRECTION_H + - Name: $v + Entry: 7 + Data: 9|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: ERROR_CORRECTION_H + - Name: k__BackingField + Entry: 9 + Data: 3 + - Name: k__BackingField + Entry: 9 + Data: 3 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 10|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: ADJUST_PATTERN_POSITIONS + - Name: $v + Entry: 7 + Data: 11|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: ADJUST_PATTERN_POSITIONS + - Name: k__BackingField + Entry: 7 + Data: 12|System.RuntimeType, mscorlib + - Name: + Entry: 1 + Data: System.Int32[][], mscorlib + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 7 + Data: 13|System.RuntimeType, mscorlib + - Name: + Entry: 1 + Data: System.Object[], mscorlib + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 14|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: RS_BLOCKS + - Name: $v + Entry: 7 + Data: 15|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: RS_BLOCKS + - Name: k__BackingField + Entry: 9 + Data: 12 + - Name: k__BackingField + Entry: 9 + Data: 13 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: 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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: RS_POLYNOMIAL_LUT_KEYS + - Name: $v + Entry: 7 + Data: 17|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: RS_POLYNOMIAL_LUT_KEYS + - Name: k__BackingField + Entry: 7 + Data: 18|System.RuntimeType, mscorlib + - Name: + Entry: 1 + Data: System.Byte[], mscorlib + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 9 + Data: 18 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 19|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: RS_POLYNOMIAL_LUT_VALUES + - Name: $v + Entry: 7 + Data: 20|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: RS_POLYNOMIAL_LUT_VALUES + - Name: k__BackingField + Entry: 7 + Data: 21|System.RuntimeType, mscorlib + - Name: + Entry: 1 + Data: System.Byte[][], mscorlib + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 9 + Data: 13 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 22|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: BIT_LIMIT_TABLE + - Name: $v + Entry: 7 + Data: 23|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: BIT_LIMIT_TABLE + - Name: k__BackingField + Entry: 9 + Data: 12 + - Name: k__BackingField + Entry: 9 + Data: 13 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 24|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: EXPONENT_TABLE + - Name: $v + Entry: 7 + Data: 25|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: EXPONENT_TABLE + - Name: k__BackingField + Entry: 9 + Data: 18 + - Name: k__BackingField + Entry: 9 + Data: 18 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 26|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 7 + Data: + - Name: $k + Entry: 1 + Data: LOGARITHM_TABLE + - Name: $v + Entry: 7 + Data: 27|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: LOGARITHM_TABLE + - Name: k__BackingField + Entry: 9 + Data: 18 + - Name: k__BackingField + Entry: 9 + Data: 18 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: + Entry: 6 + Data: + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 5 + Data: false + - Name: _fieldAttributes + Entry: 7 + Data: 28|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: + - Name: + Entry: 8 + Data: + - Name: + Entry: 13 + Data: + - Name: + Entry: 8 + Data: diff --git a/Assets/UdonQR/Udon/UdonQR.asset.meta b/Assets/Gorialis/UdonQR/Udon/UdonQR.asset.meta similarity index 100% rename from Assets/UdonQR/Udon/UdonQR.asset.meta rename to Assets/Gorialis/UdonQR/Udon/UdonQR.asset.meta diff --git a/Assets/UdonQR/Udon/UdonQRCanvasSetter.asset b/Assets/Gorialis/UdonQR/Udon/UdonQRCanvasSetter.asset similarity index 59% rename from Assets/UdonQR/Udon/UdonQRCanvasSetter.asset rename to Assets/Gorialis/UdonQR/Udon/UdonQRCanvasSetter.asset index 3f41f86..25b36ff 100644 --- a/Assets/UdonQR/Udon/UdonQRCanvasSetter.asset +++ b/Assets/Gorialis/UdonQR/Udon/UdonQRCanvasSetter.asset @@ -12,19 +12,20 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3} m_Name: UdonQRCanvasSetter m_EditorClassIdentifier: - serializedUdonProgramAsset: {fileID: 11400000, guid: 38340f97df821b7448d6251a0ae8bc1c, + serializedUdonProgramAsset: {fileID: 11400000, guid: b17cd950041874e40bc940f7bdaec4ce, type: 2} udonAssembly: assemblyError: sourceCsScript: {fileID: 11500000, guid: c32b0eecbf0b1b5418acf2f2662c03a7, type: 3} - behaviourIDHeapVarName: __refl_const_intnl_udonTypeID - compileErrors: [] + scriptVersion: 2 + compiledVersion: 2 + behaviourSyncMode: 0 hasInteractEvent: 0 + scriptID: -2812986901055704359 serializationData: SerializedFormat: 2 SerializedBytes: - ReferencedUnityObjects: - - {fileID: 11500000, guid: 12bea67aa39620741af205f1260869a4, type: 3} + ReferencedUnityObjects: [] SerializedBytesString: Prefab: {fileID: 0} PrefabModificationsReferencedUnityObjects: [] @@ -53,40 +54,40 @@ MonoBehaviour: - Name: $v Entry: 7 Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 3|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType + - Name: k__BackingField + Entry: 1 + Data: _qrLibrary + - Name: k__BackingField Entry: 7 - Data: 4|System.RuntimeType, mscorlib + Data: 3|System.RuntimeType, mscorlib - Name: Entry: 1 Data: UdonQR, Assembly-CSharp - Name: Entry: 8 Data: - - Name: declarationType - Entry: 3 - Data: 1 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: VRCUdonUdonBehaviour - - Name: symbolOriginalName - Entry: 1 - Data: _qrLibrary - - Name: symbolUniqueName + - Name: k__BackingField + Entry: 7 + Data: 4|System.RuntimeType, mscorlib + - Name: Entry: 1 - Data: _qrLibrary - - Name: symbolDefaultValue + Data: VRC.Udon.UdonBehaviour, VRC.Udon + - Name: + Entry: 8 + Data: + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: Entry: 6 Data: - Name: Entry: 8 Data: - - Name: fieldAttributes + - Name: k__BackingField + Entry: 5 + Data: true + - Name: _fieldAttributes Entry: 7 Data: 5|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: @@ -98,9 +99,6 @@ MonoBehaviour: - Name: Entry: 8 Data: - - Name: userBehaviourSource - Entry: 10 - Data: 0 - Name: Entry: 8 Data: @@ -116,42 +114,36 @@ MonoBehaviour: - Name: $v Entry: 7 Data: 6|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 7|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType + - Name: k__BackingField + Entry: 1 + Data: _canvasTarget + - Name: k__BackingField Entry: 7 - Data: 8|System.RuntimeType, mscorlib + Data: 7|System.RuntimeType, mscorlib - Name: Entry: 1 Data: UnityEngine.UI.Text, UnityEngine.UI - Name: Entry: 8 Data: - - Name: declarationType - Entry: 3 - Data: 1 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: UnityEngineUIText - - Name: symbolOriginalName - Entry: 1 - Data: _canvasTarget - - Name: symbolUniqueName - Entry: 1 - Data: _canvasTarget - - Name: symbolDefaultValue + - Name: k__BackingField + Entry: 9 + Data: 7 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: Entry: 6 Data: - Name: Entry: 8 Data: - - Name: fieldAttributes + - Name: k__BackingField + Entry: 5 + Data: true + - Name: _fieldAttributes Entry: 7 - Data: 9|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib + Data: 8|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 Data: 0 @@ -161,9 +153,6 @@ MonoBehaviour: - Name: Entry: 8 Data: - - Name: userBehaviourSource - Entry: 6 - Data: - Name: Entry: 8 Data: @@ -178,43 +167,37 @@ MonoBehaviour: Data: errorCorrection - Name: $v Entry: 7 - Data: 10|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 11|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType + Data: 9|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField + Entry: 1 + Data: errorCorrection + - Name: k__BackingField Entry: 7 - Data: 12|System.RuntimeType, mscorlib + Data: 10|System.RuntimeType, mscorlib - Name: Entry: 1 Data: System.Int32, mscorlib - Name: Entry: 8 Data: - - Name: declarationType - Entry: 3 - Data: 1 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: errorCorrection - - Name: symbolUniqueName - Entry: 1 - Data: errorCorrection - - Name: symbolDefaultValue + - Name: k__BackingField + Entry: 9 + Data: 10 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: Entry: 6 Data: - Name: Entry: 8 Data: - - Name: fieldAttributes + - Name: k__BackingField + Entry: 5 + Data: true + - Name: _fieldAttributes Entry: 7 - Data: 13|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib + Data: 11|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 Data: 0 @@ -224,9 +207,6 @@ MonoBehaviour: - Name: Entry: 8 Data: - - Name: userBehaviourSource - Entry: 6 - Data: - Name: Entry: 8 Data: @@ -241,37 +221,31 @@ MonoBehaviour: Data: maskPattern - Name: $v Entry: 7 - Data: 14|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 15|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 12 - - Name: declarationType - Entry: 3 - Data: 1 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: maskPattern - - Name: symbolUniqueName + Data: 12|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + - Name: k__BackingField Entry: 1 Data: maskPattern - - Name: symbolDefaultValue + - Name: k__BackingField + Entry: 9 + Data: 10 + - Name: k__BackingField + Entry: 9 + Data: 10 + - Name: k__BackingField + Entry: 7 + Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib + - Name: Entry: 6 Data: - Name: Entry: 8 Data: - - Name: fieldAttributes + - Name: k__BackingField + Entry: 5 + Data: true + - Name: _fieldAttributes Entry: 7 - Data: 16|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib + Data: 13|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 Data: 0 @@ -281,9 +255,6 @@ MonoBehaviour: - Name: Entry: 8 Data: - - Name: userBehaviourSource - Entry: 6 - Data: - Name: Entry: 8 Data: diff --git a/Assets/UdonQR/Udon/UdonQRCanvasSetter.asset.meta b/Assets/Gorialis/UdonQR/Udon/UdonQRCanvasSetter.asset.meta similarity index 100% rename from Assets/UdonQR/Udon/UdonQRCanvasSetter.asset.meta rename to Assets/Gorialis/UdonQR/Udon/UdonQRCanvasSetter.asset.meta diff --git a/Assets/UdonQR/UdonSharp.meta b/Assets/Gorialis/UdonQR/UdonSharp.meta similarity index 100% rename from Assets/UdonQR/UdonSharp.meta rename to Assets/Gorialis/UdonQR/UdonSharp.meta diff --git a/Assets/UdonQR/UdonSharp/UdonQR.cs b/Assets/Gorialis/UdonQR/UdonSharp/UdonQR.cs similarity index 99% rename from Assets/UdonQR/UdonSharp/UdonQR.cs rename to Assets/Gorialis/UdonQR/UdonSharp/UdonQR.cs index 8c0ef04..eba3fe3 100644 --- a/Assets/UdonQR/UdonSharp/UdonQR.cs +++ b/Assets/Gorialis/UdonQR/UdonSharp/UdonQR.cs @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2021 Devon (Gorialis) R +Copyright (c) 2021-present Devon (Gorialis) R Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -76,7 +76,7 @@ private short[] ToUTF8(char[] characters) for (int i = 0; i < writeIndex; i++) output[i] = buffer[i]; - + return output; } @@ -652,7 +652,7 @@ public string Create(string input, int error_correction = 0, int mask_pattern = if (rs_trim_offset > 0) { new_rs_polynomial = new byte[rs_polynomial.Length - rs_trim_offset]; - + for (int j = rs_trim_offset; j < rs_polynomial.Length; j++) new_rs_polynomial[j - rs_trim_offset] = rs_polynomial[j]; @@ -673,7 +673,7 @@ public string Create(string input, int error_correction = 0, int mask_pattern = if (offset > 0) { new_raw_polynomial = new byte[raw_polynomial.Length - offset]; - + for (int j = offset; j < raw_polynomial.Length; j++) new_raw_polynomial[j - offset] = raw_polynomial[j]; @@ -693,7 +693,7 @@ public string Create(string input, int error_correction = 0, int mask_pattern = modulo_polynomial = left_side; break; } - + int ratio = LOGARITHM_TABLE[left_side[0]] - LOGARITHM_TABLE[right_side[0]]; byte[] output_polynomial = new byte[left_side.Length]; @@ -712,7 +712,7 @@ public string Create(string input, int error_correction = 0, int mask_pattern = if (offset > 0) { new_left_polynomial = new byte[output_polynomial.Length - offset]; - + for (int j = offset; j < output_polynomial.Length; j++) new_left_polynomial[j - offset] = output_polynomial[j]; @@ -729,7 +729,7 @@ public string Create(string input, int error_correction = 0, int mask_pattern = ecdata[r][i] = (byte)(mod_index >= 0 ? modulo_polynomial[mod_index] : 0); } - + } byte[] data_cache = new byte[total_code_count]; @@ -832,7 +832,7 @@ public string Create(string input, int error_correction = 0, int mask_pattern = void Start() { - + } } diff --git a/Assets/UdonQR/UdonSharp/UdonQR.cs.meta b/Assets/Gorialis/UdonQR/UdonSharp/UdonQR.cs.meta similarity index 100% rename from Assets/UdonQR/UdonSharp/UdonQR.cs.meta rename to Assets/Gorialis/UdonQR/UdonSharp/UdonQR.cs.meta diff --git a/Assets/UdonQR/UdonSharp/UdonQRCanvasSetter.cs b/Assets/Gorialis/UdonQR/UdonSharp/UdonQRCanvasSetter.cs similarity index 94% rename from Assets/UdonQR/UdonSharp/UdonQRCanvasSetter.cs rename to Assets/Gorialis/UdonQR/UdonSharp/UdonQRCanvasSetter.cs index c374cf7..fe9c676 100644 --- a/Assets/UdonQR/UdonSharp/UdonQRCanvasSetter.cs +++ b/Assets/Gorialis/UdonQR/UdonSharp/UdonQRCanvasSetter.cs @@ -25,7 +25,7 @@ public void Set(string text) void Start() { - + } } @@ -43,6 +43,9 @@ public override void OnInspectorGUI() UdonQRCanvasSetter inspectorBehaviour = (UdonQRCanvasSetter)target; + Undo.RecordObject(inspectorBehaviour, "Edited UdonQRCanvasSetter settings"); + PrefabUtility.RecordPrefabInstancePropertyModifications(inspectorBehaviour); + EditorGUILayout.LabelField("UdonQR library object:"); inspectorBehaviour._qrLibrary = (UdonQR)EditorGUILayout.ObjectField(inspectorBehaviour._qrLibrary, typeof(UdonQR), true); diff --git a/Assets/UdonQR/UdonSharp/UdonQRCanvasSetter.cs.meta b/Assets/Gorialis/UdonQR/UdonSharp/UdonQRCanvasSetter.cs.meta similarity index 100% rename from Assets/UdonQR/UdonSharp/UdonQRCanvasSetter.cs.meta rename to Assets/Gorialis/UdonQR/UdonSharp/UdonQRCanvasSetter.cs.meta diff --git a/Assets/Gorialis/UdonQR/version.txt b/Assets/Gorialis/UdonQR/version.txt new file mode 100644 index 0000000..9084fa2 --- /dev/null +++ b/Assets/Gorialis/UdonQR/version.txt @@ -0,0 +1 @@ +1.1.0 diff --git a/Assets/UdonQR/version.txt.meta b/Assets/Gorialis/UdonQR/version.txt.meta similarity index 100% rename from Assets/UdonQR/version.txt.meta rename to Assets/Gorialis/UdonQR/version.txt.meta diff --git a/Assets/UdonQR/Udon/UdonQR.asset b/Assets/UdonQR/Udon/UdonQR.asset deleted file mode 100644 index ad4b2e6..0000000 --- a/Assets/UdonQR/Udon/UdonQR.asset +++ /dev/null @@ -1,1164 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3} - m_Name: UdonQR - m_EditorClassIdentifier: - serializedUdonProgramAsset: {fileID: 11400000, guid: c630def4bff0c964b90f859edf60ba10, - type: 2} - udonAssembly: - assemblyError: - sourceCsScript: {fileID: 11500000, guid: 12bea67aa39620741af205f1260869a4, type: 3} - behaviourIDHeapVarName: __refl_const_intnl_udonTypeID - compileErrors: [] - hasInteractEvent: 0 - serializationData: - SerializedFormat: 2 - SerializedBytes: - ReferencedUnityObjects: [] - SerializedBytesString: - Prefab: {fileID: 0} - PrefabModificationsReferencedUnityObjects: [] - PrefabModifications: [] - SerializationNodes: - - Name: fieldDefinitions - Entry: 7 - Data: 0|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[UdonSharp.Compiler.FieldDefinition, - UdonSharp.Editor]], mscorlib - - Name: comparer - Entry: 7 - Data: 1|System.Collections.Generic.GenericEqualityComparer`1[[System.String, - mscorlib]], mscorlib - - Name: - Entry: 8 - Data: - - Name: - Entry: 12 - Data: 19 - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: ERROR_CORRECTION_L - - Name: $v - Entry: 7 - Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 3|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 7 - Data: 4|System.RuntimeType, mscorlib - - Name: - Entry: 1 - Data: System.Int32, mscorlib - - Name: - Entry: 8 - Data: - - Name: declarationType - Entry: 3 - Data: 257 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: ERROR_CORRECTION_L - - Name: symbolUniqueName - Entry: 1 - Data: ERROR_CORRECTION_L - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 5|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: ERROR_CORRECTION_M - - Name: $v - Entry: 7 - Data: 6|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 7|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 257 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: ERROR_CORRECTION_M - - Name: symbolUniqueName - Entry: 1 - Data: ERROR_CORRECTION_M - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 8|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: ERROR_CORRECTION_Q - - Name: $v - Entry: 7 - Data: 9|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 10|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 257 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: ERROR_CORRECTION_Q - - Name: symbolUniqueName - Entry: 1 - Data: ERROR_CORRECTION_Q - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 11|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: ERROR_CORRECTION_H - - Name: $v - Entry: 7 - Data: 12|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 13|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 257 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: ERROR_CORRECTION_H - - Name: symbolUniqueName - Entry: 1 - Data: ERROR_CORRECTION_H - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 14|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: MODE_NUMBER - - Name: $v - Entry: 7 - Data: 15|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 16|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 257 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: MODE_NUMBER - - Name: symbolUniqueName - Entry: 1 - Data: MODE_NUMBER - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 17|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: MODE_ALPHANUMERIC - - Name: $v - Entry: 7 - Data: 18|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 19|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 257 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: MODE_ALPHANUMERIC - - Name: symbolUniqueName - Entry: 1 - Data: MODE_ALPHANUMERIC - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 20|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: MODE_BYTES - - Name: $v - Entry: 7 - Data: 21|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 22|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 257 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: MODE_BYTES - - Name: symbolUniqueName - Entry: 1 - Data: MODE_BYTES - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 23|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: MODE_KANJI - - Name: $v - Entry: 7 - Data: 24|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 25|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 257 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: MODE_KANJI - - Name: symbolUniqueName - Entry: 1 - Data: MODE_KANJI - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 26|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: ADJUST_PATTERN_POSITIONS - - Name: $v - Entry: 7 - Data: 27|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 28|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 7 - Data: 29|System.RuntimeType, mscorlib - - Name: - Entry: 1 - Data: System.Int32[][], mscorlib - - Name: - Entry: 8 - Data: - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemObjectArray - - Name: symbolOriginalName - Entry: 1 - Data: ADJUST_PATTERN_POSITIONS - - Name: symbolUniqueName - Entry: 1 - Data: ADJUST_PATTERN_POSITIONS - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 30|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: RS_BLOCKS - - Name: $v - Entry: 7 - Data: 31|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 32|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 29 - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemObjectArray - - Name: symbolOriginalName - Entry: 1 - Data: RS_BLOCKS - - Name: symbolUniqueName - Entry: 1 - Data: RS_BLOCKS - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 33|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: RS_POLYNOMIAL_LUT_KEYS - - Name: $v - Entry: 7 - Data: 34|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 35|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 7 - Data: 36|System.RuntimeType, mscorlib - - Name: - Entry: 1 - Data: System.Byte[], mscorlib - - Name: - Entry: 8 - Data: - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemByteArray - - Name: symbolOriginalName - Entry: 1 - Data: RS_POLYNOMIAL_LUT_KEYS - - Name: symbolUniqueName - Entry: 1 - Data: RS_POLYNOMIAL_LUT_KEYS - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 37|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: RS_POLYNOMIAL_LUT_VALUES - - Name: $v - Entry: 7 - Data: 38|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 39|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 7 - Data: 40|System.RuntimeType, mscorlib - - Name: - Entry: 1 - Data: System.Byte[][], mscorlib - - Name: - Entry: 8 - Data: - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemObjectArray - - Name: symbolOriginalName - Entry: 1 - Data: RS_POLYNOMIAL_LUT_VALUES - - Name: symbolUniqueName - Entry: 1 - Data: RS_POLYNOMIAL_LUT_VALUES - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 41|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: BIT_LIMIT_TABLE - - Name: $v - Entry: 7 - Data: 42|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 43|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 29 - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemObjectArray - - Name: symbolOriginalName - Entry: 1 - Data: BIT_LIMIT_TABLE - - Name: symbolUniqueName - Entry: 1 - Data: BIT_LIMIT_TABLE - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 44|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: BCH_G15 - - Name: $v - Entry: 7 - Data: 45|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 46|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: BCH_G15 - - Name: symbolUniqueName - Entry: 1 - Data: BCH_G15 - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 47|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: BCH_G18 - - Name: $v - Entry: 7 - Data: 48|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 49|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: BCH_G18 - - Name: symbolUniqueName - Entry: 1 - Data: BCH_G18 - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 50|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: BCH_G15_MASK - - Name: $v - Entry: 7 - Data: 51|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 52|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 4 - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemInt32 - - Name: symbolOriginalName - Entry: 1 - Data: BCH_G15_MASK - - Name: symbolUniqueName - Entry: 1 - Data: BCH_G15_MASK - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 53|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: ALPHANUMERIC_LUT - - Name: $v - Entry: 7 - Data: 54|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 55|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 7 - Data: 56|System.RuntimeType, mscorlib - - Name: - Entry: 1 - Data: System.String, mscorlib - - Name: - Entry: 8 - Data: - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemString - - Name: symbolOriginalName - Entry: 1 - Data: ALPHANUMERIC_LUT - - Name: symbolUniqueName - Entry: 1 - Data: ALPHANUMERIC_LUT - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 57|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: EXPONENT_TABLE - - Name: $v - Entry: 7 - Data: 58|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 59|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 36 - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemByteArray - - Name: symbolOriginalName - Entry: 1 - Data: EXPONENT_TABLE - - Name: symbolUniqueName - Entry: 1 - Data: EXPONENT_TABLE - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 60|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: LOGARITHM_TABLE - - Name: $v - Entry: 7 - Data: 61|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: fieldSymbol - Entry: 7 - Data: 62|UdonSharp.Compiler.SymbolDefinition, UdonSharp.Editor - - Name: internalType - Entry: 9 - Data: 36 - - Name: declarationType - Entry: 3 - Data: 258 - - Name: syncMode - Entry: 3 - Data: 0 - - Name: symbolResolvedTypeName - Entry: 1 - Data: SystemByteArray - - Name: symbolOriginalName - Entry: 1 - Data: LOGARITHM_TABLE - - Name: symbolUniqueName - Entry: 1 - Data: LOGARITHM_TABLE - - Name: symbolDefaultValue - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: fieldAttributes - Entry: 7 - Data: 63|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: userBehaviourSource - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: diff --git a/Assets/UdonQR/version.txt b/Assets/UdonQR/version.txt deleted file mode 100644 index 3eefcb9..0000000 --- a/Assets/UdonQR/version.txt +++ /dev/null @@ -1 +0,0 @@ -1.0.0 diff --git a/README.md b/README.md index 3d58232..c92304c 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ You need the latest [VRCSDK3-WORLD](https://vrchat.com/home/download) and a copy To use the library in your scene, either drag an instance of the UdonQR prefab into the scene, or add the `UdonBehaviour` component to an existing object and give it the `UdonQR` program source. -**You only need to have one instance of UdonQR in your world. The library object is stateless, and so it is safe for multiple behaviors or objects to use it at once.** +**You only need to have one instance of UdonQR in your world. The library object is stateless, and so it is safe for multiple behaviours or objects to use it at once.** ## Using the library in your world (simple method): The UdonQR package comes with a "QRCanvas" prefab that includes a correctly set up Canvas and Text component configured to display QR codes, as well as a frontend script. -Drag the prefab into your world whereever you wish to display a QR code, and align the canvas such that the text is against a clean white background for the best results. +Drag the prefab into your world wherever you wish to display a QR code, and align the canvas such that the text is against a clean white background for the best results. Make sure to set your UdonQR library object in the script: @@ -47,7 +47,7 @@ Make sure to set your UdonQR library object in the script: You can set the error correction and mask pattern here as well. -To set the displayed QR code to a given input, add a field to your custom behavior to reference the frontend script: +To set the displayed QR code to a given input, add a field to your custom behaviour to reference the frontend script: ```csharp [SerializeField] @@ -60,11 +60,11 @@ Then use it like this: _qrCanvas.Set(text); ``` -Make sure you set the field on your custom behavior to reference the QRCanvas object. +Make sure you set the field on your custom behaviour to reference the QRCanvas object. ## Using the library in your world (advanced method) -Add or create the UdonQR library object as described above and add a field to your behavior to reference the library, like so: +Add or create the UdonQR library object as described above and add a field to your behaviour to reference the library, like so: ```csharp [SerializeField] @@ -75,11 +75,11 @@ Make sure you set the field to reference the UdonQR prefab, or whichever object -You can then use the library from that behavior as described below. +You can then use the library from that behaviour as described below. ## API reference -The UdonQR behavior only contains one public entrypoint. It is as such: +The UdonQR behaviour only contains one public entrypoint. It is as such: `Create(string input, int error_correction, int mask_pattern, string fill_character, string clear_character) -> string` @@ -119,7 +119,7 @@ The UdonQR behavior only contains one public entrypoint. It is as such: > > This is used to generate the string output at the end of encoding. > -> I recommend `\u2591` (LIGHT SHADE) as a default. It's a feint interlaced character with the same text metrics as other drawing symbol characters. +> I recommend `\u2591` (LIGHT SHADE) as a default. It's a faint interlaced character with the same text metrics as other drawing symbol characters. In the [supplied font](Assets/Gorialis/UdonQR/Fonts), it is entirely invisible. > > You may be tempted to use rich text to instead use FULL BLOCK in white. While this does work for small QR codes, using rich text formatting with a per-module frequency in a QR code is liable to hit the Unity 65536 generated mesh limit, which will cause your canvas to stop displaying correctly inexplicably (and with no way to tell this has happened from Udon). > @@ -140,7 +140,7 @@ The world linked in the header shows a demo of the library in action. The time taken to generate QR codes depends on the size of the input data involved. Larger amounts of data require more polls to figure out the correct versioning and encoding format, as well as more expensive polynomial calculations for error correction. -Overall, the library is a **lot faster** than you might expect it to be (it was a lot faster than I expected, at least). Players might experience a momentary stutter during generation if their framerate is high, but this is only a fraction of a second and shouldn't be much of an issue unless you generate frequently. +Overall, the library is a **lot faster** than you might expect it to be (it was a lot faster than I expected, at least). Players might experience a momentary stutter during generation if their frame rate is high, but this is only a fraction of a second and shouldn't be much of an issue unless you generate frequently. ## Acknowledgements diff --git a/package.py b/package.py new file mode 100644 index 0000000..9fdafbd --- /dev/null +++ b/package.py @@ -0,0 +1,141 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +""" +MIT License + +Copyright (c) 2021-present Devon (Gorialis) R + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +""" + +import io +import pathlib +import subprocess +import tarfile +from dataclasses import dataclass + +import yaml + + +PROJECT_DIRECTORY = pathlib.Path(__file__).parent +BUILDS_DIRECTORY = PROJECT_DIRECTORY / 'Builds' +ASSETS_DIRECTORY = PROJECT_DIRECTORY / 'Assets' +GORIALIS_DIRECTORY = ASSETS_DIRECTORY / 'Gorialis' + + +@dataclass +class UnityPackageItem: + path: str + guid: str + meta_content: bytes + content: bytes | None = None + + @classmethod + def from_path(cls, path: pathlib.Path) -> 'UnityPackageItem': + meta_path = path.with_name(path.name + '.meta') + + with open(meta_path, 'rb') as fp: + meta_content = fp.read() + guid = yaml.safe_load(meta_content)['guid'] + + if path.is_dir(): + content = None + else: + with open(path, 'rb') as fp: + content = fp.read() + + return cls( + path=path.relative_to(PROJECT_DIRECTORY).as_posix(), + guid=guid, + meta_content=meta_content, + content=content + ) + + @property + def data(self) -> dict[str, bytes]: + value = { + "asset.meta": self.meta_content, + "pathname": self.path.encode('utf-8') + } + + if self.content: + value['asset'] = self.content + + return value + + def add_to(self, package: tarfile.TarFile): + for filename, content in self.data.items(): + info = tarfile.TarInfo(name=f"{self.guid}/{filename}") + info.size = len(content) + + package.addfile(info, io.BytesIO(content)) + + @property + def is_directory(self) -> bool: + return self.content is None + + @property + def is_file(self) -> bool: + return self.content is not None + + +PROCESS = subprocess.Popen( + ['git', 'rev-parse', '--short', 'HEAD'], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE +) + +COMMIT_HASH, ERR = PROCESS.communicate() + +BUILDS_DIRECTORY.mkdir(exist_ok=True) + +for project in GORIALIS_DIRECTORY.iterdir(): + if not project.is_dir(): + continue + + print(f"Building {project.name}") + + with open(project / 'version.txt', 'r', encoding='utf-8') as fp: + version = fp.read().strip() + + with open(BUILDS_DIRECTORY / f'{project.name}.{version}.unitypackage', 'wb') as outer_package: + with tarfile.open(name='archtemp.tar', fileobj=outer_package, mode='w:gz') as package: + for file in project.glob("**/*"): + if file.name.endswith('.meta'): + continue + + if file.name == '.icon.png': + continue + + item = UnityPackageItem.from_path(file) + + print(f" Adding {file.relative_to(PROJECT_DIRECTORY).as_posix()}") + + if file == project / 'version.txt': + if COMMIT_HASH: + item.content = version.encode('utf-8') + b'\n' + COMMIT_HASH + else: + item.content = version.encode('utf-8') + + item.add_to(package) + + with open(project / '.icon.png', 'rb') as fp: + info = package.gettarinfo(arcname='.icon.png', fileobj=fp) + package.addfile(info, fp)