2021年2月5日 星期五
2019年12月11日 星期三
如何在Unity 3d 場景內加入光暈效果 (Lens flare effect)
1.匯入Standard Assets 。
2.在Light 這個 Game object 上的Flare 屬性,選擇你想要的Lens flare effect。
3.在Scene Window 上面的effect button ,將Flares 打勾,這樣在Scene Window 就可以看到光暈效果了
4.最後一個步驟,你還要在你的Camera 上新增Flare Layer這個Componet,才能在執行的時候看的光暈效果喔。
2.在Light 這個 Game object 上的Flare 屬性,選擇你想要的Lens flare effect。
3.在Scene Window 上面的effect button ,將Flares 打勾,這樣在Scene Window 就可以看到光暈效果了
4.最後一個步驟,你還要在你的Camera 上新增Flare Layer這個Componet,才能在執行的時候看的光暈效果喔。
2017年4月21日 星期五
2011年11月3日 星期四
FileHelper C# 好用的Text file 讀寫 Library
http://filehelpers.sourceforge.net/
The FileHelpers are a free and easy to use .NET library to import/export data from fixed length or delimited records in files, strings or streams.
The idea is pretty simple:
The Library also has support for import/export data from differents storages like Excel, Access, SqlServer, etc.
The FileHelpers are a free and easy to use .NET library to import/export data from fixed length or delimited records in files, strings or streams.
The idea is pretty simple:
You can strong type your flat file (fixed or delimited) simply describing a class that maps to each record and later read/write your file as an strong typed .NET array |
The Library also has support for import/export data from differents storages like Excel, Access, SqlServer, etc.
2011年10月6日 星期四
MailDefinition 好用的 HTML template Mail body 產生器
http://martinnormark.com/generate-html-e-mail-body-in-c-using-templates
這個 .net class 可以用HTML template file 產生出 HTML 格式的 Mail message,除了拿來寄mail外,也可以拿來產生HTML 套版結果,如果要用在非ASPX的專案(如WCF),需要參考下面的文章,動點小手腳。
http://forums.silverlight.net/t/110773.aspx/1
這個 .net class 可以用HTML template file 產生出 HTML 格式的 Mail message,除了拿來寄mail外,也可以拿來產生HTML 套版結果,如果要用在非ASPX的專案(如WCF),需要參考下面的文章,動點小手腳。
http://forums.silverlight.net/t/110773.aspx/1
"The owner parameter indicates which control is the parent of the MailDefinition control. It determines which directory to search for the text file specified in the BodyFileName property."
I found a solution. Using a class file (.cs) rather than an WebForm (.aspx page) I used MailDefinition successfully. The key was to create a control (System.Web.UI.Control) that referenced the .BodyFileName. So the code for this is: (where md is an instance of MailDefinition, and message is an instance of MailMessage)
Control control = new Control();
control.AppRelativeTemplateSourceDirectory = control.ResolveUrl(md.BodyFileName);
message = md.CreateMailMessage("test@test.com", replacements, control);
Which works, but I haven't tested it on the Internet yet.
好用的WCF REST Service 測試工具: Advanced Rest Client Application
最近為了測試 WCF 寫的 REST Service ,找到了一個安裝在 google Chrome 上的 Application,發現非常好用,安裝網址:
https://chrome.google.com/webstore/detail/ahdjpgllmllekelefacdedbjnjaplfjn?hl=zh-TW
https://chrome.google.com/webstore/detail/ahdjpgllmllekelefacdedbjnjaplfjn?hl=zh-TW
訂閱:
文章 (Atom)