コード例 #1
0
        static void CreateObiCloth(MenuCommand menuCommand)
        {
            GameObject          go       = new GameObject("Obi Emitter");
            ObiEmitter          emitter  = go.AddComponent <ObiEmitter>();
            ObiEmitterShapeDisk shape    = go.AddComponent <ObiEmitterShapeDisk>();
            ObiParticleRenderer renderer = go.AddComponent <ObiParticleRenderer>();

            shape.Emitter = emitter;
            ObiEditorUtils.PlaceActorRoot(go, menuCommand);
        }
コード例 #2
0
        static void CreateObiRod(MenuCommand menuCommand)
        {
            GameObject go = new GameObject("Obi Tearable Cloth", typeof(ObiTearableCloth), typeof(ObiTearableClothRenderer));

            ObiEditorUtils.PlaceActorRoot(go, menuCommand);
        }
コード例 #3
0
ファイル: ObiRodEditor.cs プロジェクト: EdenAlon73/ZiggyPipe
        static void CreateObiRod(MenuCommand menuCommand)
        {
            GameObject go = new GameObject("Obi Rod", typeof(ObiRod), typeof(ObiRopeExtrudedRenderer));

            ObiEditorUtils.PlaceActorRoot(go, menuCommand);
        }
コード例 #4
0
        static void CreateObiEmitterShapeImage(MenuCommand menuCommand)
        {
            GameObject go = new GameObject("Image", typeof(ObiEmitterShapeImage));

            ObiEditorUtils.PlaceActorRoot(go, menuCommand);
        }
コード例 #5
0
        static void CreateObiRod(MenuCommand menuCommand)
        {
            GameObject go = new GameObject("Obi Softbody", typeof(SkinnedMeshRenderer), typeof(ObiSoftbody), typeof(ObiSoftbodySkinner));

            ObiEditorUtils.PlaceActorRoot(go, menuCommand);
        }