unity and native osx bundles and frameworks build from the same project now
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityExtension
|
||||
{
|
||||
//------------------------------------------------------------------------------------------------------------
|
||||
public static class Vector3Ext
|
||||
{
|
||||
//------------------------------------------------------------------------------------------------------------
|
||||
public static readonly Vector3 IgnoreX = new Vector3(0f, 1f, 1f);
|
||||
public static readonly Vector3 IgnoreY = new Vector3(1f, 0f, 1f);
|
||||
public static readonly Vector3 IgnoreZ = new Vector3(1f, 1f, 0f);
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------
|
||||
public static Color ToColor(this Vector3 lVector)
|
||||
{
|
||||
return new Color(lVector.x, lVector.y, lVector.z);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------
|
||||
public static class Vector4Ext
|
||||
{
|
||||
//------------------------------------------------------------------------------------------------------------
|
||||
public static Color ToColor(this Vector4 lVector)
|
||||
{
|
||||
return new Color(lVector.x, lVector.y, lVector.z, lVector.w);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user