-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# QT World Assets | ||
|
||
A collection of VRC world assets. | ||
|
||
 | ||
|
||
## Scaled Area | ||
|
||
 | ||
|
||
This prefab defines an area where users will automatically be scaled to a specific height, and going out of the area will restore the height back to what it was. For example, you can have people be automatically scaled to be tiny while in the area. | ||
|
||
[Read more](./ScaledArea/README.md) | ||
|
||
## License | ||
MIT. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Scaled Area | ||
|
||
This prefab defines an area where users will automatically be scaled to a specific height, and going out of the area will restore the height back to what it was. For example, you can have people be automatically scaled to be tiny while in the area. | ||
|
||
 | ||
|
||
## Requirements | ||
You need the latest [VRCSDK](https://creators.vrchat.com/sdk/) for worlds installed. It's recommended to use the VRChat Creator Companion to setup a project with the correct VRCSDK. | ||
|
||
## How to use | ||
1. Download the latest package from the [releases](https://github.com/dbqt/QTVRCWorldAssets/releases). | ||
2. Drag and drop the `ScaledAreaPrefab` into the scene. | ||
3. On the instance of the prefab, on the `BoxCollider` component, adjust the size and center to cover the desired area. | ||
4. On the instance of the prefab, on the `ScaledArea` script component, change the `Desired Scale` to the height the users in the area should be scaled to. | ||
5. That's it! | ||
|
||
## Notes | ||
If you are using this in a [Vket booth](https://event.vket.com/en), make sure to move the `Scripts` folder into the submission folder. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!1 &1895339896486622173 | ||
GameObject: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
serializedVersion: 6 | ||
m_Component: | ||
- component: {fileID: 9100918772221050587} | ||
- component: {fileID: 7285896652736600066} | ||
- component: {fileID: 6479759272194939642} | ||
- component: {fileID: 1262744259757405068} | ||
m_Layer: 0 | ||
m_Name: ScaledAreaPrefab | ||
m_TagString: Untagged | ||
m_Icon: {fileID: 0} | ||
m_NavMeshLayer: 0 | ||
m_StaticEditorFlags: 0 | ||
m_IsActive: 1 | ||
--- !u!4 &9100918772221050587 | ||
Transform: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 1895339896486622173} | ||
serializedVersion: 2 | ||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
m_LocalPosition: {x: 0, y: 0, z: 0} | ||
m_LocalScale: {x: 1, y: 1, z: 1} | ||
m_ConstrainProportionsScale: 0 | ||
m_Children: [] | ||
m_Father: {fileID: 0} | ||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
--- !u!114 &7285896652736600066 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 1895339896486622173} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 787f37b05346cdc4fa83f7cd20c98b5d, type: 3} | ||
m_Name: | ||
m_EditorClassIdentifier: | ||
serializationData: | ||
SerializedFormat: 2 | ||
SerializedBytes: | ||
ReferencedUnityObjects: [] | ||
SerializedBytesString: | ||
Prefab: {fileID: 0} | ||
PrefabModificationsReferencedUnityObjects: [] | ||
PrefabModifications: [] | ||
SerializationNodes: [] | ||
_udonSharpBackingUdonBehaviour: {fileID: 6479759272194939642} | ||
desiredScale: 1 | ||
--- !u!114 &6479759272194939642 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 1895339896486622173} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 45115577ef41a5b4ca741ed302693907, type: 3} | ||
m_Name: | ||
m_EditorClassIdentifier: | ||
interactTextPlacement: {fileID: 0} | ||
interactText: Use | ||
interactTextGO: {fileID: 0} | ||
proximity: 2 | ||
SynchronizePosition: 0 | ||
AllowCollisionOwnershipTransfer: 0 | ||
Reliable: 0 | ||
_syncMethod: 2 | ||
serializedProgramAsset: {fileID: 11400000, guid: 0851618ddf396104a85e13458c8f7019, | ||
type: 2} | ||
programSource: {fileID: 11400000, guid: a5405da346285f64fbcdaea5b6aee437, type: 2} | ||
serializedPublicVariablesBytesString: Ai8AAAAAATIAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAFQAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AAAAAAAYBAAAAAAAAACcBBAAAAHQAeQBwAGUAAWgAAABTAHkAcwB0AGUAbQAuAEMAbwBsAGwAZQBjAHQAaQBvAG4AcwAuAEcAZQBuAGUAcgBpAGMALgBMAGkAcwB0AGAAMQBbAFsAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ALgBJAG4AdABlAHIAZgBhAGMAZQBzAC4ASQBVAGQAbwBuAFYAYQByAGkAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AXQBdACwAIABtAHMAYwBvAHIAbABpAGIAAQEJAAAAVgBhAHIAaQBhAGIAbABlAHMALwEAAAABaAAAAFMAeQBzAHQAZQBtAC4AQwBvAGwAbABlAGMAdABpAG8AbgBzAC4ARwBlAG4AZQByAGkAYwAuAEwAaQBzAHQAYAAxAFsAWwBWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAEkAbgB0AGUAcgBmAGEAYwBlAHMALgBJAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlACwAIABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgBdAF0ALAAgAG0AcwBjAG8AcgBsAGkAYgABAAAABgEAAAAAAAAAAi8CAAAAAUkAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAGAAMQBbAFsAUwB5AHMAdABlAG0ALgBJAG4AdAAzADIALAAgAG0AcwBjAG8AcgBsAGkAYgBdAF0ALAAgAFYAUgBDAC4AVQBkAG8AbgAuAEMAbwBtAG0AbwBuAAIAAAAGAgAAAAAAAAAnAQQAAAB0AHkAcABlAAEXAAAAUwB5AHMAdABlAG0ALgBTAHQAcgBpAG4AZwAsACAAbQBzAGMAbwByAGwAaQBiACcBCgAAAFMAeQBtAGIAbwBsAE4AYQBtAGUAAR8AAABfAF8AXwBVAGQAbwBuAFMAaABhAHIAcABCAGUAaABhAHYAaQBvAHUAcgBWAGUAcgBzAGkAbwBuAF8AXwBfACcBBAAAAHQAeQBwAGUAARYAAABTAHkAcwB0AGUAbQAuAEkAbgB0ADMAMgAsACAAbQBzAGMAbwByAGwAaQBiABcBBQAAAFYAYQBsAHUAZQACAAAABwUHBQcF | ||
publicVariablesUnityEngineObjects: [] | ||
publicVariablesSerializationDataFormat: 0 | ||
--- !u!65 &1262744259757405068 | ||
BoxCollider: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 1895339896486622173} | ||
m_Material: {fileID: 0} | ||
m_IncludeLayers: | ||
serializedVersion: 2 | ||
m_Bits: 0 | ||
m_ExcludeLayers: | ||
serializedVersion: 2 | ||
m_Bits: 0 | ||
m_LayerOverridePriority: 0 | ||
m_IsTrigger: 1 | ||
m_ProvidesContacts: 0 | ||
m_Enabled: 1 | ||
serializedVersion: 3 | ||
m_Size: {x: 2, y: 2, z: 2} | ||
m_Center: {x: 0, y: 1, z: 0} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
%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: ScaledArea | ||
m_EditorClassIdentifier: | ||
serializedUdonProgramAsset: {fileID: 11400000, guid: 0851618ddf396104a85e13458c8f7019, | ||
type: 2} | ||
udonAssembly: | ||
assemblyError: | ||
sourceCsScript: {fileID: 11500000, guid: 787f37b05346cdc4fa83f7cd20c98b5d, type: 3} | ||
scriptVersion: 2 | ||
compiledVersion: 2 | ||
behaviourSyncMode: 0 | ||
hasInteractEvent: 0 | ||
scriptID: 5417941997435837136 | ||
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: 2 | ||
- Name: | ||
Entry: 7 | ||
Data: | ||
- Name: $k | ||
Entry: 1 | ||
Data: desiredScale | ||
- Name: $v | ||
Entry: 7 | ||
Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor | ||
- Name: <Name>k__BackingField | ||
Entry: 1 | ||
Data: desiredScale | ||
- Name: <UserType>k__BackingField | ||
Entry: 7 | ||
Data: 3|System.RuntimeType, mscorlib | ||
- Name: | ||
Entry: 1 | ||
Data: System.Single, mscorlib | ||
- Name: | ||
Entry: 8 | ||
Data: | ||
- Name: <SystemType>k__BackingField | ||
Entry: 9 | ||
Data: 3 | ||
- 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: true | ||
- Name: _fieldAttributes | ||
Entry: 7 | ||
Data: 4|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib | ||
- Name: | ||
Entry: 12 | ||
Data: 2 | ||
- Name: | ||
Entry: 7 | ||
Data: 5|UnityEngine.SerializeField, UnityEngine.CoreModule | ||
- Name: | ||
Entry: 8 | ||
Data: | ||
- Name: | ||
Entry: 7 | ||
Data: 6|UnityEngine.TooltipAttribute, UnityEngine.CoreModule | ||
- Name: tooltip | ||
Entry: 1 | ||
Data: Set the desired height for the avatar to scale to while inside the area | ||
- Name: | ||
Entry: 8 | ||
Data: | ||
- 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: originalScale | ||
- Name: $v | ||
Entry: 7 | ||
Data: 7|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor | ||
- Name: <Name>k__BackingField | ||
Entry: 1 | ||
Data: originalScale | ||
- Name: <UserType>k__BackingField | ||
Entry: 9 | ||
Data: 3 | ||
- Name: <SystemType>k__BackingField | ||
Entry: 9 | ||
Data: 3 | ||
- 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: 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: 13 | ||
Data: | ||
- Name: | ||
Entry: 8 | ||
Data: |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.