[링크] linker command failed with exit code 1 (use -v to see invocation)
[링크1]
[링크2]
[링크1]
[링크2]
[펌][Firebase] Missing Push Notification Entitlement (0) | 2019.06.03 |
---|---|
[펌] java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion (0) | 2019.05.29 |
[펌] 유니티 페이스북SDK Error OpenSSL, JDK 환경변수 등록 - Your Android setup is not correct. See Settings in Facebook menu (0) | 2018.07.18 |
[펌] Error building Player: CommandInvokationFailure: Unable to merge android manifests. See the Console for more details 출처: http://jaehogame.tistory.com/entry/유니티-Error-building-Player-CommandInvokationFailure-Unable-to-merge-and.. (0) | 2018.05.18 |
[Bug] A script behaviour (script unknown or not yet loaded) has a different serialization layout when loading. (0) | 2018.01.17 |
unity-excel-importer-master.zip
Automatically import from xls, xlsx to custom ScriptableObject in Unity Editor
Create an Excel file, make the first row the name of the column, and enter the data from the second row. And add it to Unity’s Project view.
Create a new script and define a class with Excel column names and public fields of the desired type. Also give the class ‘System.Serializable’ attribute.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class MstItemEntity
{
public int id;
public string name;
public int price;
}
After selecting Excel, execute ExcelAssetScript from the Create menu and create a ScriptableObject script for Excel.
As for the generated script, the Excel file name and the sheet name are extracted and the part is commented out as below.
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExcelAsset]
public class MstItems : ScriptableObject
{
//public List<EntityType> Entities; // Replace 'EntityType' to an actual type that is serializable.
}
Uncomment fields and replace the generic type of List with the Entity class defined above.
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExcelAsset]
public class MstItems : ScriptableObject
{
public List<MstItemEntity> Entities;
}
When you import or re-save Excel, a ScriptableObject with the same name as Excel is created in the same directory and the contents of Excel are imported.
After this setting, updating Excel automatically updates ScriptableObject as well.
If you enter ‘#’ in the first cell of the row, you can treat it as a comment and skip.
You can change the ScriptableObject generation position by specifying AssetPath as the ExcelAssetAttribute as shown below.
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExcelAsset(AssetPath = "Resources/MasterData")]
public class MstItems : ScriptableObject
{
public List<MstItemEntity> Entities;
}
You can use enum by entering the element name as string in cell. It is also useful to set Data Validation pull down as an element of enum in Excel.
This library is under the MIT License. This software includes the work that is distributed in the Apache License 2.0.
[펌] Socket.io-Client for Unity3D 소개 (0) | 2019.03.08 |
---|---|
[링크] iOSPlugin Sample (0) | 2019.01.29 |
[링크] Emoji_Extension (0) | 2018.06.07 |
[펌] Background Worker for Unity3D (0) | 2018.06.01 |
[Link] UnityAppNameLocalizationForIOS (0) | 2018.03.27 |