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);
        }
Exemple #2
0
        static void CreateObiRod(MenuCommand menuCommand)
        {
            GameObject go = new GameObject("Obi Tearable Cloth", typeof(ObiTearableCloth), typeof(ObiTearableClothRenderer));

            ObiEditorUtils.PlaceActorRoot(go, menuCommand);
        }
Exemple #3
0
        static void CreateObiRod(MenuCommand menuCommand)
        {
            GameObject go = new GameObject("Obi Rod", typeof(ObiRod), typeof(ObiRopeExtrudedRenderer));

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

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

            ObiEditorUtils.PlaceActorRoot(go, menuCommand);
        }