This file contains hidden or 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
| var defaultShader = Shader.Find("Custom/Buildings/Building/Default"); | |
| var fenceShader = Shader.Find("Custom/Buildings/Building/Fence"); | |
| var asset = ToolsModifierControl.toolController.m_editPrefabInfo as BuildingInfo; | |
| if(asset == null) { Debug.Log("Error: Not a building!"); return; } | |
| if(asset.m_material.shader == defaultShader) | |
| { | |
| asset.m_requireHeightMap = true; | |
| asset.m_material.shader = fenceShader; |
This file contains hidden or 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
| import 'dart:ui' as ui; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. | |
| @override | |
| Widget build(BuildContext context) { |