-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from CyberAgentGameEntertainment/feature/updat…
…e-doc エディタAPIに関するリファレンスを追加
- Loading branch information
Showing
4 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# RenderErrorHandler Class | ||
Utilities that provide error handling for rendering. | ||
## APIs | ||
- [CheckErrorWithMaterial](#CheckErrorWithMaterial) | ||
- [FixErrorWithMaterial](#fixerrorwithmaterial) | ||
## CheckErrorWithMaterial | ||
### Summary | ||
Checks for errors in the Particle System Renderers using the specified material. | ||
### Parameters | ||
|Param|Description| | ||
|---|---| | ||
|material|Material specified for the Particle System Renderers.| | ||
|
||
### Return | ||
Returns true if an error has occurred.<br/> | ||
|
||
|
||
### Code | ||
```C# | ||
if (RendererErrorHandler.CheckErrorWithMaterial(material)) | ||
Debug.Log("Errors"); | ||
else | ||
Debug.Log("No Errors"); | ||
``` | ||
## FixErrorWithMaterial | ||
### Summary | ||
Corrects errors in the Particle System Renderers using the specified material.<br/> | ||
|
||
### Parameters | ||
|Param|Description| | ||
|---|---| | ||
|material|Material specified for the Particle System Renderers.| | ||
|
||
### Remark | ||
Ignored if the material is not specified in the Particle System Renderers. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# RenderErrorHandler クラス | ||
レンダリングに関するエラーハンドリングを提供するユーティリティです。 | ||
|
||
## APIs | ||
- [CheckErrorWithMaterial](#CheckErrorWithMaterial) | ||
- [FixErrorWithMaterial](#fixerrorwithmaterial) | ||
|
||
## CheckErrorWithMaterial | ||
### 概要 | ||
指定されたマテリアルを使用するパーティクルシステムレンダラーのエラーをチェックします。 | ||
|
||
### 引数 | ||
|パラメータ|説明| | ||
|---|---| | ||
|material|ParticleSystemRendererに指定されているマテリアル| | ||
|
||
### 戻り値 | ||
エラーがある場合はtrueを返します。<br/> | ||
|
||
### サンプルコード | ||
```C# | ||
if (RendererErrorHandler.CheckErrorWithMaterial(material)) | ||
Debug.Log("Errors"); | ||
else | ||
Debug.Log("No Errors"); | ||
``` | ||
## FixErrorWithMaterial | ||
### 概要 | ||
指定されたマテリアルを使用するParticleSystemRendereのエラーを修正します。<br/> | ||
|
||
### 引数 | ||
|パラメータ|説明| | ||
|---|---| | ||
|material|ParticleSystemRendererに指定されているマテリアル| | ||
|
||
### 備考 | ||
どのParticleSystemRendererにもマテリアルが指定されていない場合はこのメソッドは何もしません。 | ||
|
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
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