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
| # EditorConfig is awesome: https://editorconfig.org | |
| root = true | |
| [*] | |
| indent_style = space | |
| tab_width = 8 | |
| indent_size = 4 | |
| end_of_line = lf |
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
| // | |
| // ContentView.swift | |
| // DebugWindow | |
| // | |
| // Created by Yasuhito Nagatomo on 2023/11/25. | |
| // | |
| import SwiftUI | |
| import RealityKit | |
| import RealityKitContent |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sun May 9 20:45:45 2021 | |
| @author: youak | |
| """ | |
| import glob | |
| files=glob.glob("*.DNG") | |
| is_rig_cam=True #meshroom では depth推定できないような配置のrigカメラは逆効果っぽい(dence画像作成時にコケる) |
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
| struct ContentView: View { | |
| @State var scrollOffset: CGPoint = .zero | |
| var body: some View { | |
| ObservableScrollView { | |
| Text("Hello, world!") | |
| .foregroundColor(self.scrollOffset.y == 0 ? .blue : .red) | |
| } | |
| .onScroll { self.scrollOffset = $0 } |
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 UIKit | |
| #if canImport(SwiftUI) && DEBUG | |
| import SwiftUI | |
| struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable { | |
| let viewController: ViewController | |
| init(_ builder: @escaping () -> ViewController) { | |
| viewController = builder() | |
| } |
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 Foundation | |
| import SwiftUI | |
| #if os(macOS) | |
| public typealias PlatformViewType = NSView | |
| #elseif !os(watchOS) | |
| import UIKit | |
| public typealias PlatformViewType = UIView | |
| #endif | |
| #if !os(watchOS) |
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
| using UnityEngine; | |
| public class AddColliders : MonoBehaviour | |
| { | |
| public Terrain terrain; | |
| private TreeInstance[] _originalTrees; | |
| void Start() | |
| { |
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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| // Replaces Unity terrain trees with prefab GameObject. | |
| // http://answers.unity3d.com/questions/723266/converting-all-terrain-trees-to-gameobjects.html | |
| [ExecuteInEditMode] | |
| public class TreeReplacerS : EditorWindow { |