This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
public static class CopyRefUtil | |
{ | |
[MenuItem ("Assets/Copy Ref To Clipboard %&c")] | |
public static void GetReferencesString() | |
{ | |
string path = AssetDatabase.GetAssetPath(Selection.activeObject); | |
if(path.IndexOf("Resources") > -1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(NSArray*) initVariations:(NSArray*)variationDictionaries { | |
int l = [variationDictionaries count]; | |
SMVariation *vArray[l]; | |
for(int i=0;i<l; i++){ | |
NSDictionary* variationDictionary = [variationDictionaries objectAtIndex:i]; | |
SMVariation *variation = [[SMVariation alloc] initFromDictionary:variationDictionary]; | |
vArray[i] = variation; | |
} | |
NSArray *variationsArray = [NSArray arrayWithObjects:vArray count:l]; | |
return variationsArray; |
NewerOlder