| 547 | } |
| 548 | |
| 549 | MaterialParameter* MaterialParams::Get(const Guid& id) |
| 550 | { |
| 551 | MaterialParameter* result = nullptr; |
| 552 | for (int32 i = 0; i < Count(); i++) |
| 553 | { |
| 554 | if (At(i).GetParameterID() == id) |
| 555 | { |
| 556 | result = &At(i); |
| 557 | break; |
| 558 | } |
| 559 | } |
| 560 | return result; |
| 561 | } |
| 562 | |
| 563 | MaterialParameter* MaterialParams::Get(const StringView& name) |
| 564 | { |