Copy Aetheria Code
Added a bunch of code from the old Aetheria project
This commit is contained in:
parent
ab392cd3d6
commit
c58ba0b1da
1704 changed files with 175081 additions and 313 deletions
|
|
@ -0,0 +1,51 @@
|
|||
namespace UnityEngine.UI.Extensions.Examples
|
||||
{
|
||||
public class AnimateEffects : MonoBehaviour
|
||||
{
|
||||
public LetterSpacing letterSpacing;
|
||||
float letterSpacingMax = 10, letterSpacingMin = -10, letterSpacingModifier = 0.1f;
|
||||
public CurvedText curvedText;
|
||||
float curvedTextMax = 0.05f, curvedTextMin = -0.05f, curvedTextModifier = 0.001f;
|
||||
public Gradient2 gradient2;
|
||||
float gradient2Max = 1, gradient2Min = -1, gradient2Modifier = 0.01f;
|
||||
public CylinderText cylinderText;
|
||||
private Transform cylinderTextRT;
|
||||
Vector3 cylinderRotation = new Vector3(0, 1, 0);
|
||||
public SoftMaskScript SAUIM;
|
||||
float SAUIMMax = 1, SAUIMMin = 0, SAUIMModifier = 0.01f;
|
||||
// Use this for initialization
|
||||
void Start()
|
||||
{
|
||||
cylinderTextRT = cylinderText.GetComponent<Transform>();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
letterSpacing.spacing += letterSpacingModifier;
|
||||
if (letterSpacing.spacing > letterSpacingMax || letterSpacing.spacing < letterSpacingMin)
|
||||
{
|
||||
letterSpacingModifier = -letterSpacingModifier;
|
||||
}
|
||||
curvedText.CurveMultiplier += curvedTextModifier;
|
||||
if (curvedText.CurveMultiplier > curvedTextMax || curvedText.CurveMultiplier < curvedTextMin)
|
||||
{
|
||||
curvedTextModifier = -curvedTextModifier;
|
||||
}
|
||||
gradient2.Offset += gradient2Modifier;
|
||||
if (gradient2.Offset > gradient2Max || gradient2.Offset < gradient2Min)
|
||||
{
|
||||
gradient2Modifier = -gradient2Modifier;
|
||||
}
|
||||
|
||||
cylinderTextRT.Rotate(cylinderRotation);
|
||||
|
||||
SAUIM.CutOff += SAUIMModifier;
|
||||
if (SAUIM.CutOff > SAUIMMax || SAUIM.CutOff < SAUIMMin)
|
||||
{
|
||||
SAUIMModifier = -SAUIMModifier;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1dc69a45cd2765d4db3933346112431a
|
||||
timeCreated: 1496665065
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4410a34295ab4eb43bb12fd6758d69c9
|
||||
timeCreated: 1490183498
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Scripts/NIH/unity-ui-extensions/Examples/TextEffects/swirl.png
(Stored with Git LFS)
Normal file
BIN
Assets/Scripts/NIH/unity-ui-extensions/Examples/TextEffects/swirl.png
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -0,0 +1,57 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 73f1719d5b8f9a1499c5a719ab10e675
|
||||
timeCreated: 1447964200
|
||||
licenseType: Store
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
cubemapConvolution: 0
|
||||
cubemapConvolutionSteps: 4
|
||||
cubemapConvolutionExponent: 1.5
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: 0
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
rGBM: 0
|
||||
compressionQuality: 50
|
||||
allowsAlphaSplitting: 0
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 5
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
outline: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
/// Credit playemgames
|
||||
/// Sourced from - http://forum.unity3d.com/threads/sprite-icons-with-text-e-g-emoticons.265927/
|
||||
|
||||
namespace UnityEngine.UI.Extensions.Examples
|
||||
{
|
||||
public class testHref : MonoBehaviour
|
||||
{
|
||||
public TextPic textPic;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
textPic = GetComponent<TextPic>();
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
textPic.onHrefClick.AddListener(OnHrefClick);
|
||||
}
|
||||
|
||||
void OnDisable()
|
||||
{
|
||||
textPic.onHrefClick.RemoveListener(OnHrefClick);
|
||||
}
|
||||
|
||||
private void OnHrefClick(string hrefName)
|
||||
{
|
||||
Debug.Log("Click on the " + hrefName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 87d264f28a3959240b775c19c0d11013
|
||||
timeCreated: 1468515487
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in a new issue