Bring in AAC!
project ive been working on for a while, just felt confident enough to move it here
This commit is contained in:
parent
e608e2a56b
commit
1d7052a258
209 changed files with 1561 additions and 74738 deletions
35
AAC/AACShared/Runtime/FloaterDefinition.cs
Normal file
35
AAC/AACShared/Runtime/FloaterDefinition.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using VRC.SDKBase;
|
||||
|
||||
namespace gay.lilyy.aacshared.runtimecomponents
|
||||
{
|
||||
public class FloaterDefinition: MonoBehaviour, IEditorOnly {
|
||||
|
||||
// unity needs this to show the enable/disable box
|
||||
void Start(){}
|
||||
public float floatHeight = 0;
|
||||
[Tooltip("Time in seconds for one full spin cycle")]
|
||||
public float loopInSeconds = 10f;
|
||||
[Tooltip("Number of times object spins in one loop")]
|
||||
public int spinCycles = 2;
|
||||
[Tooltip("Axis to spin around (x, y, or z)")]
|
||||
public string spinAxis = "z";
|
||||
public bool enableOnPC = true;
|
||||
[Tooltip("Quest, Pico, Android/iOS Mobile, etc.")]
|
||||
public bool enableOnMobile = true;
|
||||
|
||||
[Tooltip("If set, this parameter will toggle the floater on/off")]
|
||||
public string toggleParamName = "";
|
||||
|
||||
|
||||
/** <summary>
|
||||
Compares two FloaterDefinitions for equality based on their properties.
|
||||
Used for chunking similar floaters into one animation layer
|
||||
</summary> */
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(floatHeight, loopInSeconds, spinCycles, enableOnPC, enableOnMobile, toggleParamName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue