コード例 #1
0
 /// <summary>
 /// </summary>
 /// <param name="source">
 /// </param>
 /// <param name="pointerX">
 /// </param>
 /// <param name="pointerY">
 /// </param>
 /// <param name="meshUnderPointer">
 /// </param>
 public ActionEvent(AbstractMesh source, double pointerX, double pointerY, AbstractMesh meshUnderPointer)
 {
     this.meshUnderPointer = meshUnderPointer;
     this.source           = source;
     this.pointerX         = pointerX;
     this.pointerY         = pointerY;
 }
コード例 #2
0
 /// <summary>
 /// </summary>
 /// <param name="triggerOptions">
 /// </param>
 /// <param name="condition">
 /// </param>
 public Action(TriggerOptions triggerOptions, Condition condition = null)
 {
     this.trigger           = triggerOptions.trigger;
     this._triggerParameter = triggerOptions.parameter;
     this._nextActiveAction = this;
     this._condition        = condition;
 }
コード例 #3
0
 public async ValueTask <bool> isReadyForSubMesh(AbstractMesh mesh, BaseSubMesh subMesh, System.Nullable <bool> useInstances = null)
 {
     return(await EventHorizonBlazorInterop.Func <bool>(
                new object[]
     {
         new string[] { this.___guid, "isReadyForSubMesh" }, mesh, subMesh, useInstances
     }
                ));
 }
コード例 #4
0
 public async ValueTask <bool> canAffectMesh(AbstractMesh mesh)
 {
     return(await EventHorizonBlazorInterop.Func <bool>(
                new object[]
     {
         new string[] { this.___guid, "canAffectMesh" }, mesh
     }
                ));
 }
コード例 #5
0
 public async ValueTask getDirectionToRef(Vector3 localAxis, Vector3 result, AbstractMesh mesh = null)
 {
     await EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "getDirectionToRef" }, localAxis, mesh, result
     }
         );
 }
コード例 #6
0
 public async ValueTask setAbsolutePosition(Vector3 position, AbstractMesh mesh = null)
 {
     await EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "setAbsolutePosition" }, position, mesh
     }
         );
 }
コード例 #7
0
 public void prepareDefines(AbstractMesh mesh, NodeMaterial nodeMaterial, NodeMaterialDefines defines)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "prepareDefines" }, mesh, nodeMaterial, defines
     }
         );
 }
 public void start(AbstractMesh emitter = null)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "start" }, emitter
     }
         );
 }
 public bool needAlphaBlendingForMesh(AbstractMesh mesh)
 {
     return(EventHorizonBlazorInterop.Func <bool>(
                new object[]
     {
         new string[] { this.___guid, "needAlphaBlendingForMesh" }, mesh
     }
                ));
 }
 public bool isReady(AbstractMesh mesh = null, System.Nullable <bool> useInstances = null)
 {
     return(EventHorizonBlazorInterop.Func <bool>(
                new object[]
     {
         new string[] { this.___guid, "isReady" }, mesh, useInstances
     }
                ));
 }
コード例 #11
0
    /// <summary>
    /// Создаем тессеракт
    /// </summary>
    void Start()
    {
        meshObject = TesseractMesh.GenerateHypercube();
        projection = new GameObject(meshObject.Name);
        projection.AddComponent <MeshFilter>();
        MeshRenderer meshrenderer = projection.AddComponent <MeshRenderer>();

        meshrenderer.materials = new Material[] { edgeColor, innerColor };
    }
コード例 #12
0
 public async ValueTask zoomOnMesh(AbstractMesh mesh, System.Nullable <bool> focusOnOriginXZ = null, ActionCallback onAnimationEnd = null)
 {
     await EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "zoomOnMesh" }, mesh, focusOnOriginXZ, onAnimationEnd
     }
         );
 }
コード例 #13
0
 public void forceCompilationAsync(AbstractMesh mesh, IMaterialCompilationOptions options = null)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "forceCompilationAsync" }, mesh, options
     }
         );
 }
 public void provideFallbacks(AbstractMesh mesh, EffectFallbacks fallbacks)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "provideFallbacks" }, mesh, fallbacks
     }
         );
 }
コード例 #15
0
 public bool canAffectMesh(AbstractMesh mesh)
 {
     return(EventHorizonBlazorInterop.Func <bool>(
                new object[]
     {
         new string[] { this.___guid, "canAffectMesh" }, mesh
     }
                ));
 }
 public void translate(Vector3 vec, System.Nullable <int> space = null, AbstractMesh mesh = null)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "translate" }, vec, space, mesh
     }
         );
 }
 public void getPositionToRef(AbstractMesh mesh, Vector3 result, System.Nullable <int> space = null)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "getPositionToRef" }, space, mesh, result
     }
         );
 }
 public void forceCompilation(AbstractMesh mesh, ActionCallback <Material> onCompiled = null, IMaterialCompilationOptions options = null, ActionCallback <string> onError = null)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "forceCompilation" }, mesh, onCompiled, options, onError
     }
         );
 }
コード例 #19
0
 public void initializeDefines(AbstractMesh mesh, NodeMaterial nodeMaterial, NodeMaterialDefines defines, System.Nullable <bool> useInstances = null)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "initializeDefines" }, mesh, nodeMaterial, defines, useInstances
     }
         );
 }
 public async ValueTask forceCompilationAsync(AbstractMesh mesh, IMaterialCompilationOptions options = null)
 {
     await EventHorizonBlazorInterop.Task <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "forceCompilationAsync" }, mesh, options
     }
         );
 }
コード例 #21
0
 public void attachToMesh(AbstractMesh mesh, System.Nullable <bool> supportPointerMove = null)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "attachToMesh" }, mesh, supportPointerMove
     }
         );
 }
コード例 #22
0
 public async ValueTask <decimal[]> getTransformMatrices(AbstractMesh mesh)
 {
     return(await EventHorizonBlazorInterop.FuncArray <decimal>(
                new object[]
     {
         new string[] { this.___guid, "getTransformMatrices" }, mesh
     }
                ));
 }
コード例 #23
0
 public async ValueTask getAbsolutePositionToRef(AbstractMesh mesh, Vector3 result)
 {
     await EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "getAbsolutePositionToRef" }, mesh, result
     }
         );
 }
コード例 #24
0
 public ValueTask set_originMesh(AbstractMesh value)
 {
     __originMesh = null;
     return(EventHorizonBlazorInterop.Set(
                this.___guid,
                "originMesh",
                value
                ));
 }
コード例 #25
0
 public async ValueTask getRotationMatrixToRef(AbstractMesh mesh, Matrix result, System.Nullable <int> space = null)
 {
     await EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "getRotationMatrixToRef" }, space, mesh, result
     }
         );
 }
 public static void Parse(object parsedActions, AbstractMesh @object, Scene scene)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { "BABYLON", "ActionManager", "Parse" }, parsedActions, @object, scene
     }
         );
 }
コード例 #27
0
 public ValueTask set_lockedTarget(AbstractMesh value)
 {
     __lockedTarget = null;
     return(EventHorizonBlazorInterop.Set(
                this.___guid,
                "lockedTarget",
                value
                ));
 }
 public void zoomOnMeshHierarchy(AbstractMesh mesh, System.Nullable <bool> focusOnOriginXZ = null, ActionCallback onAnimationEnd = null)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "zoomOnMeshHierarchy" }, mesh, focusOnOriginXZ, onAnimationEnd
     }
         );
 }
コード例 #29
0
 public void setTarget(AbstractMesh target, System.Nullable <bool> toBoundingCenter = null, System.Nullable <bool> allowSamePosition = null)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "setTarget" }, target, toBoundingCenter, allowSamePosition
     }
         );
 }
 public void addCPUSkinningFallback(decimal rank, AbstractMesh mesh)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "addCPUSkinningFallback" }, rank, mesh
     }
         );
 }