表示テーマ
RectLight
長方形の発光面を持つ照明を設定します。
型の情報
- 名前空間:
NEMEngine - 型:
NEMEngine.RectLight(Class) - 継承元:NEMEngine.Component
- Inspector:RectLight
AttenuationRadius
csharp
public float AttenuationRadiusRectLightの届く半径です。
操作:読取・変更。
対応するInspector:RectLight。
BarnDoorAngle
csharp
public float BarnDoorAngleRectLightの遮光板の角度です。
操作:読取・変更。
対応するInspector:RectLight。
BarnDoorLength
csharp
public float BarnDoorLengthRectLightの遮光板の長さです。
操作:読取・変更。
対応するInspector:RectLight。
Color
csharp
public Color4 Color色を指定します。RGBAではAlphaも持ちます。
操作:読取・変更。
対応するInspector:RectLight。
Enabled
csharp
public bool EnabledこのComponentの処理を有効にします。GameObject全体のアクティブ状態とは別です。
操作:読取・変更。
対応するInspector:RectLight。
FromEntity
csharp
public static RectLight FromEntity(GameObject gameObject)既にComponentを持つGameObjectから操作用の参照を作ります。Componentを追加する操作ではありません。
| 引数 | 型 | 既定値 |
|---|---|---|
gameObject | NEMEngine.GameObject | 必須 |
戻り値:NEMEngine.RectLight。
Intensity
csharp
public float Intensity光や効果の強度倍率です。
操作:読取・変更。
対応するInspector:RectLight。
ShadowStrength
csharp
public float ShadowStrength影による減光の強さです。0で影の影響がなくなります。
操作:読取・変更。
対応するInspector:RectLight。
SourceHeight
csharp
public float SourceHeightRectLight発光面の高さです。
操作:読取・変更。
対応するInspector:RectLight。
SourceWidth
csharp
public float SourceWidthRectLight発光面の幅です。
操作:読取・変更。
対応するInspector:RectLight。
componentTypeID
csharp
public static int componentTypeID組み込みComponentの接続識別子です。通常のゲームコードではGetComponentで取得します。
操作:読取専用。
実行時の扱い
Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。